Error In Mailbox Extension

Hello everyone,

I am using mailbox extension, but it gives me this error. "Only variables should be assigned by reference"




C:\wamp\www\placers\protected\modules\mailbox\controllers\MessageController.php(39)


27                 'controller'=>$this,

28                 'module'=>$this->module,

29                 'buttons'=>$this->buttons,

30                 'arclass'=>'Mailbox',

31             )

32         );

33     }

34     

35     public function actionInbox($ajax=null)

36     {

37                 $this->layout ='main';

38         $this->module->registerConfig($this->getAction()->getId());

39         $cs =& $this->module->getClientScript();

40         $cs->registerScriptFile($this->module->getAssetsUrl().'/js/mailbox.js',CClientScript::POS_END);

41         //$js = '$("#mailbox-list").yiiMailboxList('.$this->module->getOptions().');console.log(1)';

42 

43         //$cs->registerScript('mailbox-js',$js,CClientScript::POS_READY);

44         

45         

46         if(isset($_POST['convs']))

47         {

48             $this->buttonAction('inbox');

49         }

50         $dataProvider = new CActiveDataProvider( Mailbox::model()->inbox($this->module->getUserId()) );

51         if(isset($ajax))



How can I solve this ?

Thanks in advance.

Missing $ at the variable c:


 $cs =& $this->module->getClientScript();

take out the ampersand "&"


<?php


change this

$cs =& $this->module->getClientScript();

// to

$cs = $this->module->getClientScript();

thaks a lot. It works now.