Difference between #48 and #49 of
By Example: CHtml

Revision #49 has been created by 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)')
);

```


***
[...]
79 0
74 followers
Viewed: 989 896 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