Difference between #19 and #20 of
By Example: CHtml

Revision #20 has been created by 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
[...]
79 0
74 followers
Viewed: 989 989 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