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
[...]
78 0
75 followers
Viewed: 881 763 times
Version: 1.1
Category: Tutorials
Written by: jonah
Last updated by: glicious
Created on: Sep 25, 2009
Last updated: 2 years ago
Update Article

Revisions

View all history