can anyone help me, when I try to use programmatic declaration of dijit, it
won't work unless I specify which dijit it belongs
NOT WORKING CODE
<?
echo $this->numberSpinner(
'test',
5,
array(
'min' => -10,
'max' => 10,
'places' => 2
),
array(
'maxlenth' => 3
)
);
?>
WORKING CODE
<?
echo $this->numberSpinner(
'test',
5,
array(
'min' => -10,
'max' => 10,
'places' => 2
),
array(
'maxlenth' => 3,
'dojoType' => 'dijit.form.NumberSpinner'
)
);
?>
The same also happen in form,
NOT WORKING CODE
$form->addElement(
'Button',
'foo',
array(
'label' => 'Button Label'
)
);
WORKING CODE
$form->addElement(
'Button',
'foo',
array(
'label' => 'Button Label',
'dojoType' => 'dijit.form.Button'
)
);
And for the code working, I need to explicitly "include" the module I need
$this->dojo()->setDjConfigOption('parseOnLoad', true)
->requireModule('dijit.form.NumberSpinner')
->requireModule('dijit.form.Button');
Please help, because in the Zend framework's manual, I don't need to
include the dojoType parameter
Thank you
--
View this message in context:
http://www.nabble.com/dojo-programmatic-declaration-not-working-tp19577345p19577345.html
Sent from the Zend Framework mailing list archive at Nabble.com.