Difference between #4 and #5 of
By Example: CHtml

Revision #5 has been created by Alex Muir on Sep 25, 2009, 7:27:42 PM with the memo:

Deleted erroneous brackets from end of example code
« previous (#4) next (#6) »

Changes

Title unchanged

By Example: CHtml

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
***

### Example 1: Linking to a controller action

```php
<?php echo CHtml::link('Link Text',array('controller/action'))
); ?>
```
[...]
```php
<?php echo CHtml::link('Link Text',array('controller/action',
'param1'=>'value1'))
); ?>
```
[...]
'param1'=>'value1',
'param2'=>'value2',
'param3'=>'value3'))
); ?>
```

#### HTML Output:
[...]
79 0
74 followers
Viewed: 989 966 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