Revision #20                                    has been created by  balrok                                    on Nov 14, 2010, 12:46:02 PM with the memo:
 balrok                                    on Nov 14, 2010, 12:46:02 PM with the memo:
                                
                                
                                    corrected chtml::button controller/action link (must be an array else it will be treated as absolut url)                                
                                                                    « previous (#19)                                                                                                    next (#21) »                                                            
                            Changes
                            
    Title
    unchanged
    By Example: CHtml
    Category
    unchanged
    Tutorials
    Yii version
    unchanged
    
    Tags
    unchanged
    
    Content
    changed
    [...]
***
**Example 1: Connecting a button to a controller action**
```php
<?php echo CHtml::button('Button Text', array('submit' => array('controller/action'))
); ?>
```
**HTML Output:**
```php[...]