The Zii component contains some jquery-based UI components that are defined in the package Zii.widgets.jui, including Cjuiaccordion, Cjuiautocomplete,cjuidatepicker, and so on. This article describes Cjuiaccordion, which shows a accordion component (a UI component that is similar to accordion folding). This control encapsulates the JUI accordion plugin.
The basic usage is as follows:
$this->widget (' zii.widgets.jui.CJuiAccordion ', array (' Panels ' =>array (' Panel 1 ' = ' Content for panel 1 ', ' Panel 2 ' + ' Content for panel 2 ', ' panel 3 ' = = $this->renderpartial (' _content1 ', null,true), ' options ' = Array (' collapsible ' =>true, ' active ' =>1, ' htmloptions ' =>array (' style ' = ' width:500px; '),));? >
Define a few collapsible pages of accordion by defining the Panels property, and configure the options delivery parameters to the JUI accordion plug-in.
The above is the PHP Development Framework Yii Framework Tutorial (ZII) component-accordion sample content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!