Hey, now I'm reading the docs and implementing the example 12.29 from the
docs (pretty much a copy and paste to see how it works) but I get the
following error:
*Fatal error*: Call to a member function accordionContainer() on a
non-object in *W:\www\dev\prueba\application\default\layouts\main.phtml* on
line *37*
I read this in a previous page:
"In order to utilize these view helpers, you need to register the path to
the dojo view helpers with your view object.
*Example 12.9. Registering the Dojo View Helper Prefix Path*
$view->addPrefixPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
"
If I add this line directly in the controller for this view only I get the
following error:
*Fatal error*: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
message 'Plugin by name AddPrefixPath was not found in the registry.' in
W:\usr\local\php\includes\Zend\Loader\PluginLoader.php:372 Stack trace: #0
W:\usr\local\php\includes\Zend\View\Abstract.php(1114):
Zend_Loader_PluginLoader->load('AddPrefixPath') #1
W:\usr\local\php\includes\Zend\View\Abstract.php(545):
Zend_View_Abstract->_getPlugin('helper', 'addPrefixPath') #2
W:\usr\local\php\includes\Zend\View\Abstract.php(312):
Zend_View_Abstract->getHelper('addPrefixPath') #3 [internal function]:
Zend_View_Abstract->__call('addPrefixPath', Array) #4
W:\www\dev\prueba\application\default\controllers\IndexController.php(20):
Zend_View->addPrefixPath('Zend/Dojo/View/...', 'Zend_Dojo_View_...') #5
W:\usr\local\php\includes\Zend\Controller\Action.php(502):
IndexController->indexAction() #6
W:\usr\local\php\includes\Zend\Controller\Dispatcher\Standard.php(293):
Zend_Controller_Action->dispatch('indexAction') #7
W:\usr\local\php\includes\Zend\Controller\Front.p in *
W:\usr\local\php\includes\Zend\Loader\PluginLoader.php* on line *372
*Now, I wonder... Where is the mistake?*
*--
Christian Sánchez A.