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

Issue Type: Improvement Created: 2009-09-30T04:10:33.000+0000 Last Updated: 2012-11-20T20:53:25.000+0000 Status: Closed Fix version(s): Reporter: Honza Komarek (vebloud) Assignee: None Tags: - Zend_View

Related issues: Attachments:


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.



Posted by Rob Allen (rob) on 2012-11-20T20:53:25.000+0000

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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.