Personal parameter into main.php

Hello i need add personal parameters to file protected/config/main.php like

[color=#008800]‘mycolor’[/color][color=#000000] [/color][color=#666600]=>[/color][color=#000000] [/color][color=#008800]‘red’[/color][color=#666600],[/color]

How i can make it?

Add ‘mycolor’=>‘red’ to the “params” section (at the bottom) of config/main.php.

Then access it like so:




if (Yii::app()->params['mycolor'] == 'red') 

{

  echo "Red!!";

}



tanks! :)