Pop Up Window


(Nsbharti09) #1

how i get pop up window while clicking on login button in yii framework basic application plz help me i am new in yii frame work


(Angel De La Noche) #2

Obviously you’ll need some javascript. It’s not related to YII itself.


(Kaushik Itdu) #3

Hope this will be helpful:

By Example: CHtml


(Mubashar Na K) #4

you can also use bootstrap API’s for pop up window.

http://www.yiiframework.com/extension/bootstrap/


(Justinthomasonline) #5

hai nilu09

you can use jquery for this or yii itself has extension for popup boxes. One of the simple and best yii popup box is CJuiDialog.you can check it from this link .

Download the extension and extract it into extension folder inside protected and call inside the view

<?php echo CHtml::button(“new”,array(‘title’=>“Customer”,‘onclick’=>’$("#dialog-crud").dialog(“open”); return false;’)); ?>

<?php

$this->beginWidget(‘zii.widgets.jui.CJuiDialog’, array(

‘id’=>‘dialog-crud’,

‘options’=>array(

'title'=&gt;'your application title',


'autoOpen'=&gt;false,


'modal'=&gt;true,


'width'=&gt;1080,


'height'=&gt;500,


'resizable'=&gt;false


),

));

?>

<iframe src="index.php?r=Controller/action" width="100%" height="100%"></iframe>


(Archdude4458) #6

You can use fancy box light box to display poup content on your website.<br />

<br />

Check out site : fancybox.net