Difference between #2 and #3 of
Use shortcut functions to reduce typing

Revision #3 has been created by qiang on Jul 22, 2009, 3:45:50 PM with the memo:

renamed link() to be l() since link is an internal PHP function.
« previous (#2) next (#4) »

Changes

Title unchanged

Use shortcut functions to reduce typing

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
}

/**
* This is the shortcut to CHtml::link()
*/
function l
ink($text, $url = '#', $htmlOptions = array())
{
return CHtml::link($text, $url, $htmlOptions);
}

/**
[...]
46 0
46 followers
Viewed: 52 743 times
Version: 1.1
Category: Tutorials
Tags:
Written by: qiang
Last updated by: Yang He
Created on: May 8, 2009
Last updated: 6 years ago
Update Article

Revisions

View all history