In some pages (where I put forms), I want to user Dojo forms. For this
reason, I put Zend_Dojo::enableView($this->view); in that controller's
actions.
And I extend my form from Zend_Dojo_Form.

In my layout, I've added :
<?php
if ($this->dojo()->isEnabled()) {
  $this->dojo()->setLocalPath($this->staticUrl('js/dojo/dojo.js'))
               ->addStyleSheetModule('dijit.themes.tundra');
  echo $this->dojo();
}
?>

And in my bootstrap:
$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');


Now, I get in every page (and not only where I activated Dojo in my action)
that HTML code:

<style type="text/css">
<!--
    @import "/fourgon.net/public/js/dijit/themes/tundra/tundra.css";
-->
</style>
<script type="text/javascript"
src="/fourgon.net/public/js/dojo/dojo.js"></script>
...


I don't understand why Dojo seem to be enabled by default?

-----
Guillaume ORIOL
Sofware architect
Technema
-- 
View this message in context: 
http://www.nabble.com/Dojo-always-enabled-tp19762103p19762103.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to