This example describes the Cjuidialog usage of the YII Framework Pop-up window component. Share to everyone for your reference, as follows:
Cjuidialog Components under manual Zii.widgets.jui
Use the following code in the view
$this->beginwidget (' Zii.widgets.jui.CJuiDialog ', array (' id ' = ' mydialog ',//Popup ID//additional JavaScript Options for the dialog plugin ' options ' =>array (//pass to the Jui plugin's parameters ' title ' = ' popup ' title ', ' AutoOpen ' =>false,// Whether to automatically open ' width ' = ' auto ',//width ' height ' = ' auto ',//Height ' buttons ' =>array ( ' off ' = ' JS: Function () {$ (this). dialog ("Close") (} ',),) ,)); Echo ' dialog content here '; $this->endwidget (' Zii.widgets.jui.CJuiDialog ');//This is the popup link, echo chtml::link (' Open dialog ', ' # ', Array (' onclick ' = ' $ ' ("#mydialog"). Dialog ("Open"); return false; ',//Click to open Popup window);
It is hoped that this article is helpful to the PHP program design based on YII framework.