Hi Matthew,
Thanks for your reply. The following are the snippets you asked for:
BOOTSTRAP:
public static function setupView()
{
...
$view->addHelperPath('Zend/Dojo/View/Helper/',
'Zend_Dojo_View_Helper');
...
}
LAYOUT SCRIPT
...
<?php
if ($this->dojo()->isEnabled()){
$this->dojo()->setLocalPath('../../../../../../../js/dojo/dojo.js')
->addStyleSheetModule('dijit.themes.tundra')
->requireModule('dijit.form.ValidationTextBox')
->requireModule('dijit.form.Textarea')
->setDjConfigOption('parseOnLoad', true);
echo $this->dojo();
}
?>
</head>
<body class="tundra">
input
type="text"
id="firstName"
size="20"
dojoType="dijit.form.ValidationTextBox"
required="true"
propercase="true"
promptMessage="Enter first name."
invalidMessage="First name is required."
trim="true"
onchange="userNameOnChange()"
/>
<?= $this->validationTextBox(
'firstname',
'Start writing here...',
array('required' => true,
'propercase' => true,
'promptMessage' => 'Enter first name',
'invalidMessage' => 'First name is required'),
array('size' => '20')
);?>
...
I think that is about it. Thanks for all your help. Much appreciated! I dont
have the line Zend_Dojo_View_Helper_Dojo::setUseDeclarative(); in my codes
but the declarative still works.
-----
dee
--
View this message in context:
http://www.nabble.com/Zend_Dojo-Problem-tp21136696p21143467.html
Sent from the Zend Framework mailing list archive at Nabble.com.