34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
By Example: CHtml
Comparing
#19
with
#20
Revision #20 was created by
balrok
on Nov 14, 2010, 12:46:02 PM.
corrected chtml::button controller/action link (must be an array else it will be treated as absolut url)
« Previous (#19)
Next (#21) »
Content
[...]
***
**Example 1: Connecting a button to a controller action**
```php
<?php echo CHtml::button('Button Text', array('submit' =>
array(
'controller/action'))
)
; ?>
```
**HTML Output:**
```php
[...]