Hi all!
I have Dojo working great in my bootstrap/loader, controllers and view
scripts, but I would like to use a few Dojo Dijits in my Layouts.
Particularly in some partials for navigation.
In the layout script I have just a simple button for now:
$btnTasks = new Zend_Dojo_Form_Element_Button('btnTasks');
$btnTasks->setAttribs(array(
'onClick' => "window.location.replace('task');",
'label' => 'Tasks'
));
Which renders this:
<dt id="btnTasks-label"> </dt><dd id="btnTasks-element">
<button name="btnTasks" id="btnTasks" type="button"
onClick="window.location.replace('task');"
label="Tasks">btnTasks</button></dd>
The "dojo" portion of this works, I get a button and it works, but there's
no theme or styles rendered. It's just a standard, ugly form button. The
theme and styles work great in controllers and views, just not in the
layout. Which is odd, because part of the layout is calling the
"addStyleSheetModule" for Dojo.
Any idea why the styles are not working on the layouts only?
Thanks for your help!
Greg Fischer
1st Byte Solutions
http://www.1stbyte.com/