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.


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;’)); ?>


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



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









<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