Issues

ZF-7980: Zend_View::getScripthPath will not return paths to directories

Description

If is

$view->getScriptPath($param) leads on directory. Method returns path to directory. ANd directory is not script and it could be easily improved.

In protected function _script($name) { ... foreach ($this->_path['script'] as $dir) { if (is_readable($dir . $name) && !is_dir($dir . $name)) { return $dir . $name; } } ...

will resolve the problem.

Vebloud

Comments

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.