Fancybox Extension

these my view





<?php echo CHtml::link(“Choosen”,array(’/Fancybox01/ninja’), array(‘id’=>‘iframe’),array(‘partial’ => ‘1’)) ?>

  &lt;?php &#036;this-&gt;widget('ext.fancybox.EFancyBox', array(








action:public function actionNinja($partial = false)


       if (&#036;partial) 











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?