Use shortcut functions to reduce typing

Comparing #3 with #4

Revision #4 was created by jonah jonah on Aug 22, 2009, 7:24:55 PM.

changed order and optimized code

Content

[...]
/**
* 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;
 
}
```