Problem with view helper paths
Hi!
$path = $this->getHelperPaths();
print_r($paths);
prints:
Array
(
[Zend_View_Helper_] => Array
(
[0] => Zend/View/Helper/
[1] => /usr/local/apache2/htdocs/xxxx/application/views/helpers/
[2] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/mildola/
[3] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/template/
[4] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/roles/
[5] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/categories/
[6] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/languages/
[7] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/versions/
[8] =>
/usr/local/apache2/htdocs/xxxx/application/views/helpers/processindicator/
)
[Image_View_Helper_] => Array
(
[0] =>
/usr/local/apache2/htdocs/xxxx/application/module/image/views/helpers/
)
)
Now when I try to use $this->language(); // helper resides in
/usr/local/apache2/htdocs/xxxx/application/views/helpers/
I get:
'Exception' with message
'fopen(/usr/local/apache2/htdocs/xxx/application/module/image/views/helpers/Language.php)
[<a href='function.fopen'>function.fopen</a>]: failed to open stream: No
such file or directory'
I assumed that zf would search through all set paths before complaining.
Now it seems to just the last path, which is set automatically as I have
not set it myself anywhere.