bivan
(Ivan Buttinoni)
1
I need to create FB tag with iframes, but I didn’t found any better solution that create my own function doing that.
Why Yii should create iframe tag
What I didn’t found in Yii is the possibilities to manage external links in a smart way. Did I miss something?
Any suggestion/idea is welcome
TIA
Ivan
Angela88
(Angela Arrie)
2
i use extension jqprettyphoto for iframe
my code :
<?php
// import the extension
Yii::import('ext.jqPrettyPhoto');
$options = array(
'slideshow'=>false,
'autoplay_slideshow'=>false,
'show_title'=>false,
'modal'=>true,
'callback'=>'js:function(){update();}',
);
// call addPretty static function
jqPrettyPhoto::addPretty('.gallery a',jqPrettyPhoto::PRETTY_GALLERY,jqPrettyPhoto::THEME_FACEBOOK, $options);
?>
echo CHtml::link('Update Icon', MyModel::model()->urlIframe('/image/createIcon', array('id'=>$model->id),'900','400'),array('rel'=>'prettyPhoto'));
in my model
public function urlIframe($view,$param,$width,$height)
{
$link = Yii::app()->createUrl($view,$param);
$link = $link."?iframe=true&width=".$width."&height=".$height;
return $link;
}
sorry if it’s not useful…