I generally pass "--environment" to the script. See the following gist:
https://gist.github.com/937433#file_bootstrap.php

The idea is that any script you create includes the above mentioned
bootstrap. Nice thing is that this bootstrap is generic enough to work for
CLI script as well as the web application -- in other words, you include the
bootstrap from your index.php. Examples are included in the gist.

-----
--
Wil Moore III

Best Practices for Working with Open-Source Developers
http://www.faqs.org/docs/artu/ch19s02.html

Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html

DO NOT TOP-POST and DO trim your replies:
http://linux.sgms-centre.com/misc/netiquette.php#toppost
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/APPLICATION-ENV-for-cli-scripts-staging-tp3582445p3606658.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to