Zend Framework yeni Iam bana yardım edin ...
// create text input for pharmacy name
$name = new Zend_Form_Element_Text('name');
$name->setOptions(array('size' => '30'))
->setRequired(true)
->addValidator('NotEmpty')
->addValidator('Alpha');
$name->getValidator('NotEmpty')->setMessage('Please enter pharmacy name.');
$name->getValidator('Alpha')->setMessage('PharmacyName can only contain letters and spaces.');
// create submit button
$submit = new Zend_Form_Element_Submit('submit');
$submit->removeDecorator('HtmlTag');
$submit->setLabel('Save')
->setOptions(array('class' => 'submit'));
// attach elements to form
$this->addElement($cd)
->addElement($name)
->addElement($submit);