membuat applikasi chat dengan YII

download https://bitbucket.org/christiansalazarh/yiichat ekstract di protected/extensions/ pada main.php setting [php] ‘imports’=>array( ‘application.extensions.yiichat.*’, ), [/php] pada site controller [php] class SiteController extends Controller { public function actions() { return array( ‘captcha’=>array( ‘class’=>’CCaptchaAction’, ‘backColor’=>0xFFFFFF, ), ‘page’=>array( ‘class’=>’CViewAction’, ),</pre> ‘yiichat’=>array(‘class’=>’YiiChatAction’), // } [/php] pasang widget pada index.php [php] <h1>Yii Chat Demo</h1> <div id=’chat’></div> <?php $this->widget(‘YiiChatWidget’, array( ‘chat_id’=>’123’, // a […]

© 2018 IT & Photography blog | ScrollMe by AccessPress Themes