-- Carlton Gibson <[email protected]> wrote
(on Wednesday, 13 January 2010, 04:05 PM +0000):
> On 13 Jan 2010, at 15:36, Marko78 wrote:
> > Is there some way to check if some view script (template file) exists?
> 
> Yes.
> 
> You could use is_readable() in conjunction with Zend_View::getScriptPaths()

Or, simpler, use getScriptPath():

    if (!$path = $this->getScriptPath('...')) {
       // NOT FOUND!!!
    }

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to