unchanged
Title
Define general array and variable and call it to anywhere in application
Create param.php file in protected/config ~~~ [php] Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active Yii::app()->params['AD_LAYOUT_POISITION'] = array("1""1" => array('width''width' => '1000','height''height' => '150'), "2"), "2" => array('width''width' => '200','height''height' => '150'), "3"), "3" => array('width''width' => '1000','height''height' => '150'), "4"), "4" => array('width''width' => '200','height''height' => '150'), );), ); ~~~ Now include this file in protected/config/main.php ~~~ [php] require_once( dirname(__FILE__) . '/params.php'); return array( 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', .... ~~~ Now suppose I have to call TEXT_ACTIVE I will write in my file as ~~~ [php] echo Yii::app()->params['TEXT_ACTIVE']; ~~~