-- Guillaume Oriol <[EMAIL PROTECTED]> wrote
(on Thursday, 04 December 2008, 01:38 AM -0800):
> Hi, I am facing a problem with Dojo: I set up Dojo to be disabled by default
> but it is still enabled in my login form.
> 
> 
>  1. I've put in my bootstrap file those two lines (set up Dojo environment but
>     disable it by default):
<snip> 
>  2. Then, in my authentication controller:
<snip>
>  3. My form extends Zend_Form (NOT Zend_Dojo_Form). Furthermore, I only use
>     plain elements that are not Dijits : Zend_Form_Element_Text,
>     Zend_Form_Element_Password et Zend_Form_Element_Submit.
>  4. My view script is very short:
<snip>
>  5. And this view script is invoked by the layout where one can find:
<snip> 
> 
> But, in the generated HTML page, I find in the HEAD tag:
<snip - finds dojo artifacts>

So, Zend_Dojo_Form utilizes the Dojo form view helper.. so rendering
your form renders that helper. All Dijit view helpers, on instantiation,
enable the dojo() view helper. So, my recommendations are to either:

  * not use Zend_Dojo_Form if you're not actually using any
    dojo-specific elements
  * Call $this->dojo()->disable(); after you render the form

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to