This article mainly introduces the usage of the Yii Framework pop-up window component CJuiDialog, and analyzes in detail the functions, usage methods, and specific parameter functions of the Yii Framework component CJuiDialog based on the instance form, you can refer to the following example to describe the usage of the Yii Framework pop-up window component CJuiDialog. We will share this with you for your reference. The details are as follows:
The CJuiDialog component is available under zii. widgets. jui.
Use the following code in the view:
$ This-> beginWidget ('zii. widgets. jui. CJuiDialog ', array ('id' => 'mydialog ', // pop-up window ID // additional javascript options for the dialog plugin 'option' => array (// parameter 'title' passed to JUI plug-in => 'pop-up window title ', 'autoopen' => false, // whether to enable 'width' => 'auto' automatically, // The width 'height' => 'auto ', // height 'buttons' => array ('offset' => 'JS: function () {$ (this ). dialog ("close");} ',); echo 'dialog content here'; $ this-> endWidget ('zii. widgets. jui. CJuiDialog '); // This is the pop-up link. echo CHtml: link ('open dialog ','#', array ('onclick' => '$ ("# mydialog "). dialog ("open"); return false; ', // Click to open the pop-up window ));
I hope this article will help you design PHP programs based on the Yii Framework.
For more information about the usage analysis of the Yii Framework pop-up component CJuiDialog, refer to the PHP Chinese website!