Startup Script

Hi to all. I need to know if there is a way to load a specific file at startup which contains variables, functions etc which are available throughout the application. I need something similar to wordpress’s “functions.php”.

Thanks

Yes but you can use param var in config file Or extend the framework.

look at the wiki at my signature about "Yii registry"

Thanks for your reply. I just wanted to load some classes, functions and some variables and wanted to have them available throught the code.

Can you please give me some rough example ?

Thanks

Check this: http://www.yiiframework.com/wiki/31/use-shortcut-functions-to-reduce-typing