renderPartial, ajaxLink and fancybox problem

Hi there !

I’ve got problem with not working ajaxLink.

how it looks:

I’m using fancybox with ajax request to renderPrtial view which contains CHtml::ajaxLink but link doesn’t work.

Without fancybox and renderPartial request is send normaly by ajaxLink.


public function actionKick()



      echo $_POST['cn'];


      $this->renderPartial('kicker', array( 'channel'=>$channel, true, true));



<div id="kicker">



echo CHtml::ajaxLink('KOPNIJ', array('/djpanel/sc/kick'), array(



             'YII_CSRF_TOKEN' => Yii::app()->request->csrfToken,






It looks like there is no JS responsible for ajaxLink on renderPartial.

Any ideas ?


Please change the

  &#036;this-&gt;renderPartial('kicker', array( 'channel'=&gt;&#036;channel), false, true);

Best Regards,

Ankit Modi

Make sure in controller acces is allowed

public function accessRules()


		return array(

			array('allow',  // allow all users to perform 'index' and 'view' actions





thats correct make it as false,true, it ll work