Custom Configuration

Hi all,

I need to know how can I create custom configuration file that is different from main YII configuration file i-e, I want to load an array of config parameters which must be available throughout the application along with default configuration. For example, in wordpress, we have functions.php that get executed at startup and available throught the application.


return array(


    // application-level parameters that can be accessed

    // using Yii::app()->params['paramName']

    'params' => require(dirname(__FILE__) . '/params.php'),


Thanks Sensorario,

Can you please also mentioned the way to include functions that can be access anytime accross the site?


you can create helper class and put inside components, or you can create file with functions and include it before yii


I’ll do that…