cdialog The dialog with the ajax loading content

  1. Requirements
  2. Usage
  3. Resources

This widget allows to display the popup Dialog like the common Yii CJuiDialog but allows any layout and ajax loading with the url.

Note: C prefix was left, because of we hope to see the control as part of the Yii soon ;)

  • Allows multi level data load: static and dynamic (Ajax)
  • Allows modal (grayBlock is showing) or simple dialog showing (page items could be clicked)
  • Allows onClose client script functionality
  • Allows onLoad client script functionality
  • Allows ajax dialog content loading
  • Allows easy design change


Yii 1.1.7


To use the extension just unzip all of its contents to the /protected/widgets/ or to the root of your /protected and /images folders.

You could always tune the view of the dialog with the dialog.css

The example of use of the CDialog and the CTree (Flexible Tree) is on the image bellow

Dialog Example

//Example of the dynamic initialization

$this->beginWidget('CDialog', array(

    // title of the dialog
    'title'=> Yii::t('main.default', 'Title'),

    // dialog is showing when page is loading

    // dialog showed with the gray background
    'modal' => true,
    'width' => 400, 
    'height' => 700, 

    // the url from where the dialog content is loading
    'url' => $this->createUrl('/yourModule/controller/getDialog/'), 

    // called when the dialog is loaded
    'onLoad' => ' function () { alert("onLoad Function"); }'


//You should return the content in your controller/action/ 
public function getDialog()
     echo "Dialog's Content";


3 1
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: sysprog
Created on: Feb 8, 2012
Last updated: 12 years ago


show all

Related Extensions