Possible Duplicate:
Running a Zend Framework action from command line
I want to create a PHP application using Zend Framework (version 1.11). It's basically for carrying out some routine tasks on a mail server, the service will get ran via a cron job.
However, because it will possibly be nice in the future to have some sort of HTML based monitoring system I want to have the the layout capabilities available.
So really there's two questions:
- How do I disable Zend Framework from rendering the view when I am running from command line?
- And how would I generally go about also building in an interface should I visit a specific url?
Thanks in advance for your advice.