Short Yii Syntax (Yii 1.X.X)
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
Shorty.php

README.md

Shorty

Short Yii Syntax (Yii 1.X.X)

Does not anything amazing, but makes it easier to type.

How to use it

Simply drop the Shorty.php in components directory. Done!

Examples:
Shorty::hasFlash('MY_KEY') ? 0 : 1;
// Old: Yii::app()->user->hasFlash('MY_KEY') ? 0 : 1;