Place to put contants in addons?
Permalink
I'd like to have a few contants in one of my addons, but obviously i dont want those in site.php. where would be the proper place to put them? Can i put them in the main controller? In a model file?
If not a packaged block, an 'if test' for the constants you need, in the block's on_start method would work. If they're not set, you could set them using the same config::set method call above.
Hope that helps