(on Wednesday, 18 March 2009, 04:04 AM -0700):
> I must to use dijit.byId(x) command during onload of dojo.
> I need to set parseOnLoad to true.
> when I set:
> $this->dojo()->setDjConfigOption('parseOnLoad', true);
>
> I have (in firebug console: [Exception... "'Error: Tried to register widget
> with id==admin_left_menu...)
>
> admin_left_menu is the id of an accordion Container defined in the file
> _adminMenuNav.phtml and
> I put this file :
> <?= $this->render('_adminMenuNav.phtml') ?>
>
> How many times does parser register the widget accordion container?
> There is a solution to avoid this error?
Unfortunately, your description isn't providing enough detail for me to
really understand what's happening.
Did you tell the dojo view helper to use declarative syntax? If not,
it's possible that the dojo parser is triggering twice -- once as
defined by Zend_Dojo, and then once by dojo (due to using the
parseOnLoad config option). That would certainly result in the double
registry of the widget.
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论