Yes rick, You can put tpl files in view folder.
I also want to know that while constructing form element in default template we can assign function for server validation.
e.g.
PHP Code:
$artist = new Zend_Form_Element_Text('artist');
$artist->setLabel('Artist')
->setRequired(true)
->setDescription('Note: Description goes here!!!')
->addFilter('StripTags')
->setAttrib('onBlur', 'javascript: isUserExist();')
->addFilter('StringTrim')
->addValidator('NotEmpty');
$gender = new Zend_Form_Element_Select('gender');
$gender->setLabel('gender')
->setMultiOptions(array('0'=>'Select','male'=>'Male', 'female'=>'Female'))
->setRequired(true)->addValidator('NotEmpty', true);
$this->addElements(array($artist, $gender));
While giving above code $form->isValid($formData) will handle server validation itself.
How could we handle server validation using smarty? Shall we put any custom isValid function or we can handle by using helper class.
{$this->formSelect("gender",$this->album.gender,null,$this->gender)}
This is the smarty code to put select option on form. Could we include any JS function with this function?
Thanks in advance.