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

Revision #4 has been created by jonah on Aug 22, 2009, 7:24:55 PM with the memo:

changed order and optimized code
« previous (#3) next (#5) »

Changes

Title unchanged

Use shortcut functions to reduce typing

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
/**
* This is the shortcut to Yii::app()->clientScript
*/
function cs()
{
return Yii::app()->
cgetClientScript();
 
}
 
 
/**
 
 * This is the shortcut to Yii::app()->user.
 
 */
 
function user() 
 
{
 
return Yii::app()->getUser()
;
}
[...]
{
return Yii::app()->params[$name];
}
 
 
/**
 
 * This is the shortcut to Yii::app()->user.
 
 */
 
function user() 
 
{
 
return Yii::app()->user;
 
}
```
46 0
45 followers
Viewed: 67 926 times
Version: 1.1
Category: Tutorials
Tags:
Written by: qiang
Last updated by: Yang He
Created on: May 8, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history