Revision #21                                    has been created by  slinstj                                    on Feb 16, 2011, 6:28:03 AM with the memo:
 slinstj                                    on Feb 16, 2011, 6:28:03 AM with the memo:
                                
                                
                                    tags and i corrected the option 'disabled'=>true to 'disabled'=>'disabled' that match to W3C standards                                
                                                                    « previous (#20)                                                                                                    next (#22) »                                                            
                            Changes
                            
    Title
    unchanged
    By Example: CHtml
    Category
    unchanged
    Tutorials
    Yii version
    unchanged
    
    Tags
    changed
    listData, chtml, link, button
    Content
    changed
    [...]
**Example 4: Generating a disabled textfield**
```php
<?php echo CHtml::textField('Text', 'some value', 
    array('disabled'=>true'disabled'); ?>
```
## CHtml::listData() method
~~~[...]