I have tried many combinations to get rid of the exception and I did. However
the result is still the same:

1) I do not add the lines to the bootstrap, but to the beginning of every
controller action menthod:

            // Set up Dojo
            Zend_Dojo::enableView($this->view); 
           
$this->view->dojo()->setLocalPath('/GoGoVerde/www/js/dojo/dojo/dojo.js')
                       ->addStyleSheetModule('dijit.themes.tundra')
                       ->disable();

2) Then when I have a view, where I want to use Dojo, I do this:

            Zend_Dojo::enableView($this->view); 
           
$this->view->dojo()->setLocalPath('/GoGoVerde/www/js/dojo/dojo/dojo.js')
                       ->addStyleSheetModule('dijit.themes.tundra')
                       ->disable();
            $this->view->dojo()->enable();
I have a common controller parent class where I have the first two
statements (enableView, dojo()->...) in a helper function, and I explicitely
call enable after that helper function in classes that use Dojo.

3) In my layout html, I have
<?php echo $this->dojo();?>  

4) and in my view I continue to have 
<?php 
echo $this->dateTextBox(
    'foo',
    '2008-07-11',
    array('required' => true)
); ?>

only. The result is the same. I even checked in Firebug if the dojo.js and
all the css es get loaded and they do. Only dateTextBox gets replaced by a
simple input html tag. Am I missing a djConfig statement, some parseOnLoad?
I also don't understand why I get the exception that the Dojo plugin cannot
be found when I implement it according to Matthew's suggestion. Maybe this
helps shed some light. If anybody has a working sample that uses echo
$->this and a dojo widget, I'd really appreciate it because I am stuck.



-- 
View this message in context: 
http://www.nabble.com/Dijit-view-helper-generates-simple-input-element-for-dateTextBox-tp19282825p19302283.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to