Yii Framework Forum: Fancybox Extension - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fancybox Extension renderpartailly a cview inside a fancybox Rate Topic: -----

#1 User is offline   Richard25 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 03-August 12

Posted 09 August 2012 - 08:05 AM

these my view

<?php
$this->breadcrumbs=array(
'Fancybox01',
);?>



<?php echo CHtml::link("Choosen",array('/Fancybox01/ninja'), array('id'=>'iframe'),array('partial' => '1')) ?>
<?php $this->widget('ext.fancybox.EFancyBox', array(
'target'=>'a#iframe',
'config'=>array(
'scrolling'=>'no',
'titleShow'=>true),
)
);
?>

action:public function actionNinja($partial = false)
{
if ($partial)
{
$this->renderPartial('/selectpatientadmission/index');

}
else
{
$this->render('/selectpatientadmission/index');

}
}
0

#2 User is offline   joepages 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-November 13

Posted 14 November 2013 - 09:40 AM

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:
<?php 
		$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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users