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) »

Changes

Title unchanged

By Example: CHtml

Category unchanged

Tutorials

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.


```php
<div class="cars-select">
<?php echo CHtml::dropDownList('Cars', 'car_id', array(
[...]
79 0
74 followers
Viewed: 993 812 times
Version: 1.1
Category: Tutorials
Written by: jonah
Last updated by: glicious
Created on: Sep 25, 2009
Last updated: 8 years ago
Update Article

Revisions

View all history