...overview of the extension...
Requirements ¶
Yii 1.0 and above
Installation ¶
Download extension into extensions directory
Add to component in configuration file: //protected/config/main.php ...
'components'=>array(
...
'cliColor' => array(
'class' => 'ext.yii-cli-color.components.KCliColor',
),
Usage ¶
echo Yii::app()->cliColor->getColoredString("This text will be blue", 'blue');
echo Yii::app()->cliColor->getColoredString("This text will be red, with a black background", 'red', 'black);
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.