Tim Fountain wrote:
> 
> * I've had to add my application's model/library directories to my local
> PHP
> CLI php.ini include_path, so that ZF can find my provider classes. This is
> not very portable.
> 

Is there a reason youre not setting this in the shell profile via
ZEND_TOOL_INCLUDE_PATH or ZEND_TOOL_INCLUDE_PATH_PREPEND of the user running
crontab?


Tim Fountain wrote:
> 
> * To give my provider classes access to my application's classes,
> resources
> etc. I've had to add a base provider class which does some bootstrapping
> in
> its constructor. My application provider classes then require this class
> in
> and extend it.
> 

I was considering something similar - and i dont think this is necessarily a
bad approach. But id like to not have to.

So i think the crux of this for me is  that Im thinking there has to be a
good way to leverage the functionality of the normal Zend_Application
bootstrapping process just for the CLI environment - im just not sure of
what that *should* look like in general implementation.

-- 
View this message in context: 
http://www.nabble.com/Creating-CLI-scripts-utilizing-ZF-tp26084241p26096261.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to