Pop Up Window

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

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

Hope this will be helpful:

By Example: CHtml

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

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

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>

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

<br />

Check out site : fancybox.net