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 fancybox not working for a view with model Rate Topic: -----

#1 User is offline   richard125 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 16-August 12

Posted 16 August 2012 - 01:10 AM

fancybox not working for view with model

view:
<?php echo CHtml::link("jelentem",array('/fancybox/carbo'),'model'=>$model,array('id'=>'iframe'))?>

<?php $this->widget('ext.fancybox.EFancyBox', array(
'target'=>'a#iframe',
'config'=>array(
'scrolling'=>'no',

'titleShow'=>true),
)
);
?>

controller:

public function actionCarbo()
{
$this->layout = false;

$this->render("/apple/index", 'model'=>$model);
}
0

#2 User is offline   alirz23 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 504
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 16 August 2012 - 01:26 AM

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'))?>
0

#3 User is offline   richard125 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 16-August 12

Posted 16 August 2012 - 02:44 AM

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
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