Difference between #29 and #30 of
By Example: CHtml

Revision #30 has been created by resurtm on Aug 11, 2011, 8:37:52 AM with the memo:

previous commit fix
« previous (#29) next (#32) »


Title unchanged

By Example: CHtml

Category unchanged


Yii version unchanged

Tags unchanged

listData, chtml, link, button

Content changed

array('empty' => '(Select a category'));

**Example 5: Generating dropdownlist with option groups.**

If you need to generate dropdownlist using both `optgroup` and `option`
 tags use the following code.

<div class="cars-select">
<?php echo CHtml::dropDownList('Cars', 'car_id', array(
78 0
Viewed: 881 625 times
Version: 1.1
Category: Tutorials
Written by: jonah
Last updated by: glicious
Created on: Sep 25, 2009
Last updated: 2 years ago
Update Article


View all history