On Friday 02 October 2009 09:41:38 Bourth wrote:
>I reach a problem : views with Dojo elements works well, but I reach "Plugin
>by name 'Dojo' was not found in the registry" when there is *no* Dojo
>elements in the view !
>
>It fails in layout when : if ($this->dojo()->isEnabled()) {.....}
The dojo view helpers are not in the same location as the standard view helpers. Add the path to the view object plugin loader using either of the following methods:
$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
or
Zend_Dojo::enableView($view);
>The error notice :
>2009-10-01T09:06:25+02:00 DEBUG (7): Plugin by name 'Dojo' was not found in
>the registry; used paths: ( see the "/" and "\" . Where do they comes from ?
>)
>Zend_View_Helper_:
>Zend/View/Helper/;./views\helpers/;C:/travail/www/vivier/application/modules
>/default/views\helpers/ #0
> C:\travail\www\vivier\library\Zend\View\Abstract.php(1118):
>Zend_Loader_PluginLoader->load('Dojo')
Your on windows, windows paths are separated by a '\', most php code contains paths with '/' as this is the more commonly used *nix path separator. Don't worry, php is smart enough to figure out where the path goes to with mixed path separators on windows.
--
"Experience is the name everyone gives to their mistakes."
☘ Oscar Wilde
没有评论:
发表评论