Revision #2 was created by qiang on May 8, 2009, 2:19:57 PM.
syntax fix
Content
[...]
......
```
Now, we can use these global functions anywhere in our application code. For example, to access the current user, we can use `user()`, instead of the lengthy `Yii::app()->user`.
> Note: Do not use these shortcut functions in components that you intend to release as reusable extensions. Doing thatso would make your components unusable if the shortcut functions used are not defined in a different application. Also pay attention if the shortcut functions cause conflict with third-party libraries used in the application.
Below is the code containing some of the most commonly used shortcut functions. Feel free to adjust it according to your taste.