Fancybox Extension

fancybox not working for view with model


<?php echo CHtml::link(“jelentem”,array(’/fancybox/carbo’),‘model’=>$model,array(‘id’=>‘iframe’))?>

<?php $this->widget(‘ext.fancybox.EFancyBox’, array(










public function actionCarbo()


       &#036;this-&gt;layout = false;


	   &#036;this-&gt;render(&quot;/apple/index&quot;, 'model'=&gt;&#036;model);


hi richard you can not pass model to CHtml::link just a quick question why do you need to pass the model to the link

<?php echo CHtml::link(“jelentem”,array(’/fancybox/carbo’),‘model’=>$model,array(‘id’=>‘iframe’))?>

i am using fancybox in my application in that while i am rendering a view without model of another controller in fancybox is working nicely but when i am using a view with model of another controller calling to render in fancybox is throwing the error …the requested content cannot be display…where is problem …plz suggest me some idea…i tried all the possiblties…but is not working

Hello guys, I’m trying to do something easy but I can’t find the way to do so on Yii Framework.

What I want to do, is open a fancybox frame which takes me to another create.php in another view. What I want to do is that when the user click "save" it save the information and then closes de fancybox frame that I just openned…

Here is how enable the fancybox frame:


		$config = array( );

		$this->widget('application.extensions.fancybox.EFancyBox', array( 'target'=>'#antecedentes', 'config'=>$config,));

		echo CHtml::link('Agregar Antecedentes',array('antecedentes/create?valorpasar=$id'),array('id'=>'antecedentes'));


I think there should be a way to give the instruction to the button not to releoad to other page just to close thi fancybox frame.

<?php echo CHtml::submitButton($model->isNewRecord ? 'Guardar' : 'Save'); ?>

Any ideas?