Hi,
I have a script that will send emails so it will pull the data from a db
and fill a template with the specific data and send it. Since this can
also happen from the application web interface I'd like to use the same
service layer.
>From the web everything seems fine but from the command line I get
"Uncaught exception 'Zend_View_Exception' with message 'no view script
directory set;"
In my script I am loading the same __initView from bootstrap.php that gets
called
$application->getBootstrap()->bootstrap('view');
$view = $application->getBootstrap()->getResource('view');
$myService->doSomething($view);
Any tips? I've googled "using Zend_View from command line" without no
relevant results. The error occurs with the render method.
Thanks.