On Monday 28 September 2009 08:42 PM, Pádraic Brady wrote:
I'm actually curious about this myself - how are people
differentiating their application.ini settings between a web
environment and console environment? Another inherited settings
section? A separate config file?
Paddy
I had to move lot of config from application.ini to the bootstrap class.
I didn't like the idea of having another APPLICATION_ENV value -
'production_cli'. This calls for additional checks in the resource
methods. For example I had to write
[code]
if (PHP_SAPI == 'cli' and APPLICATION_ENV == 'production') {
return;
}
[/code]
at be beginning of one of the resource methods.
To remove such checks, I have to move almost everything from
application.ini to the bootstrap class. :/
--
With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net,
Personal: http://sudheer.net