ZF-2210: Zend_View_Interface sample causes Warning.
Description
I know an sample causes waring. The sample is in 36.3.2.2. Template Systems Using Zend_View_Interface.
Now , getScriptPaths method in sample class Zend_View_Smarty return waring message. The message is following. Invalid argument supplied for foreach() in........ Zend/Controller/Action/Helper/ViewRenderer.php on line 322.
I propose to change getScriptPaths method from return $this->_smarty->template_dir; to return array($this->_smarty->template_dir);
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-14T09:39:21.000+0000
Scheduling for 1.0.4 release.
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-18T13:48:09.000+0000
Fixed in current trunk; thanks for the report!