Config file from outside the root path

Lets say i have a config file located two directories up from where the index.php of my application is located. How would i go to include that file that consists of an array that i could access it trough out the entire application?

Thanks.

Through relative path to index file?

Including it won't be a problem, was thinking maybe there is some sort of method to include a file that it's contents will be available trough out the entire application.

If your config is an array of name-value pairs, you can assign it to the 'params' property of the application in the app config:



return array(


    ......


    'params'=>include('path/to/myconfig.php'),


);


Then, you can access these config parameters using Yii::app()->params['name'] or Yii::app()->params->name.

That what i was looking for. Thanks.