Revision #49                                    has been created by  glicious                                    on Apr 5, 2016, 5:10:42 AM with the memo:
 glicious                                    on Apr 5, 2016, 5:10:42 AM with the memo:
                                
                                
                                    Closing brackets at the end of function                                
                                                                    « previous (#48)                                                                                            
                            Changes
                            
    Title
    unchanged
    By Example: CHtml
    Category
    unchanged
    Tutorials
    Yii version
    unchanged
    
    Tags
    unchanged
    listData, chtml, link, button, ByExample, ajax, ajax link, image
    Content
    changed
    [...]
This example will avoid the dropdownlist to be blank when no value, outputing some proper information to the user
```php
<?php echo CHtml::dropDownList('listname', $select, 
              array('M' => 'Male', 'F' => 'Female'),
              array('empty' => '(Select a gender)'));
         
```
***[...]