ZF-2210: Zend_View_Interface sample causes Warning.


I know an sample causes waring. The sample is in 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);


Scheduling for 1.0.4 release.

Fixed in current trunk; thanks for the report!