本文整理汇总了PHP中Zend_Form::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form::init方法的具体用法?PHP Zend_Form::init怎么用?PHP Zend_Form::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form
的用法示例。
在下文中一共展示了Zend_Form::init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
parent::init();
$this->addElement(new My_Form_Element_Text_Institucion('institucion'));
$this->addElement(new My_Form_Element_Text_Tag('tag'));
$this->addElement(new My_Form_Element_Select_Nivel('nivel'));
}
示例2: init
public function init()
{
parent::init();
$this->addElement(new My_Form_Element_Text_Empresa('empresa'));
$this->addElement(new My_Form_Element_Text_Tag('tag'));
$this->addElement(new My_Form_Element_Select_Nivel('nivel'));
}
示例3: init
public function init()
{
//make sure we call parent init first
parent::init();
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'partials/_modifyHealthProduct.phtml'))));
//Make required element changes
$this->setAttrib('name', 'modifyProductHealthForm');
// Product Company Name Element
$this->addElement('text', 'product_company_name', array('label' => 'Company Name:', 'required' => false, 'disabled' => 'disabled'));
// Product Name Element
$this->addElement('text', 'product_name', array('filters' => array('StringTrim'), 'label' => 'Product Name:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Product Name...'))), array('StringLength', true, array(1, 250)))));
// Product type Element
$this->addElement('select', 'product_type', array('label' => 'Policy type:', 'required' => true, 'multioptions' => array('' => '***Policy Type***', 'HSA' => 'HSA', 'HRA' => 'HRA', 'Other' => 'Other'), 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to select a Policy type...'))))));
// Insurance Riders Element
$this->addElement('multicheckbox', 'product_riders', array('label' => 'Insurance Riders:', 'required' => true, 'multioptions' => array('LTC Rider' => 'LTC Rider', 'Other' => 'Other', 'None' => 'None'), 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to select the appropriate Riders or None...'))))));
// Product Notes Element
$this->addElement('textarea', 'product_notes', array('filters' => array('StringTrim'), 'Label' => 'Product Notes:', 'cols' => '30', 'rows' => '4', 'validators' => array(array('NotEmpty', true))));
//Add ProductId Element
$this->addElement('hidden', 'product_id', array('required' => true));
// Company Name Id
$this->addElement('hidden', 'product_company_id', array('required' => true));
// Category Id
$this->addElement('hidden', 'product_category_id', array('required' => true));
// Category Name
$this->addElement('hidden', 'product_category_name', array('required' => true));
/**
* Buttons
*/
$this->addElement('button', 'saveCloseButton', array('Label' => 'Save & Close', 'class' => 'ui-state-default float-left ui-corner-all ui-button'));
$this->getElement('saveCloseButton')->removeDecorator('DtDdWrapper');
$this->addElement('button', 'saveContinueButton', array('Label' => ' Save ', 'class' => 'ui-state-default float-right ui-corner-all ui-button'));
$this->getElement('saveContinueButton')->removeDecorator('DtDdWrapper');
}
示例4: init
public function init()
{
parent::init();
$this->getElement('confirmPassword')->addValidator(new Form_Validate_Password());
$this->getElement('username')->addValidator(new Form_Validate_LoginAvailable(array('ignoreCase' => true)));
$this->getElement('password')->addErrorMessages(array(Zend_Validate_StringLength::TOO_SHORT => 'admin_account_error_password_tooshort'));
}
示例5: init
public function init()
{
$config = Zend_Registry::get('config');
$lang = Zend_Registry::get('lang');
$this->setMethod('post');
$this->setName('free_user_form');
$this->setAction('/register/new');
$this->setAttrib('enctype', 'multipart/form-data');
$this->setAttrib('lang', $lang);
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'register/register.phtml'), 'Form')));
$name = $this->createElement('text', 'name', array('class' => 'form-control', 'placeholder' => $lang->_('NAME')));
$name->setRequired(true)->addErrorMessage($lang->_('REGISTER_NAME_ERROR_MSG'));
$email = $this->createElement('text', 'email', array('data-content' => $lang->_('REGISTER_EMAIL_HINT'), 'class' => 'form-control', 'placeholder' => $lang->_('EMAIL'), 'hint' => $lang->_('EMAIL_HINT')));
$email->addValidator('EmailAddress')->setRequired(true)->addErrorMessage($lang->_('REGISTER_EMAIL_ERROR_MSG'));
$password = $this->createElement('password', 'password', array('data-content' => $lang->_('REGISTER_PASSWORD_HINT'), 'class' => 'form-control', 'placeholder' => $lang->_('PASSWORD')));
$password->addValidator('alnum')->addValidator('stringLength', false, array(6, 20))->setRequired(true)->addErrorMessage($lang->_('REGISTER_PASSWORD_ERROR_MSG'));
$repassword = $this->createElement('password', 'repassword', array('class' => 'form-control', 'placeholder' => $lang->_('REPASSWORD')));
$repassword->addValidator(new Zend_Validate_Identical('password'))->setRequired(true)->addErrorMessage($lang->_('REGISTER_REPASSWORD_ERROR_MSG'));
$terms = $this->createElement('checkbox', 'terms_agree', array('label' => $lang->_('TERMS_AGREE_LABEL')));
$terms->setUncheckedValue(null);
$terms->setDecorators(array('Description', 'Errors', array('ViewHelper'), array('Label', array('class' => 'radio-inline', 'placement' => 'APPEND', 'escape' => false))));
$terms->setRequired(true)->addErrorMessage($lang->_('TERMS_ERROR_MSG'));
$submit = $this->createElement('submit', 'submit', array('label' => $lang->_('REGISTER'), 'class' => 'btn btn-orange btn-block'));
$this->addElements(array($name, $email, $password, $repassword, $terms, $submit));
parent::init();
}
示例6: init
public function init()
{
parent::init();
$this->setMethod('post')->setAttrib('accept-charset', 'UTF-8')->clearDecorators()->addPrefixPaths(array(array('prefix' => 'Digitalus_Form_Decorator', 'path' => 'Digitalus/Form/Decorator', 'type' => 'decorator'), array('prefix' => 'Digitalus_Form_Element', 'path' => 'Digitalus/Form/Element/', 'type' => 'element')))->addElementPrefixPaths(array(array('prefix' => 'Digitalus_Form_Decorator', 'path' => 'Digitalus/Form/Decorator', 'type' => 'decorator'), array('prefix' => 'Digitalus_Filter', 'path' => 'Digitalus/Filter/', 'type' => 'filter'), array('prefix' => 'Digitalus_Validate', 'path' => 'Digitalus/Validate', 'type' => 'validate')));
$this->_setStandardDecorators();
//set instance
$instance = $this->_addInstance();
$instanceElement = $this->createElement('hidden', 'form_instance', array('value' => $instance, 'decorators' => array('ViewHelper')));
$this->addElement($instanceElement);
}
示例7: init
public function init()
{
parent::init();
$this->setMethod('post');
$this->addElement('text', 'subject', array('label' => 'Subject:', 'required' => true, 'validators' => array(array('validator' => 'StringLength', 'options' => array(0, 50))), 'ng-model' => 'user.subject'));
$this->addElement('text', 'letter', array('label' => 'Letter:', 'required' => true, 'validators' => array(array('validator' => 'StringLength', 'options' => array(0, 50))), 'ng-model' => 'user.letter'));
$this->addElement('button', 'zrobszkic', array('ignore' => true, 'label' => 'Zrob szkic', 'ng-click' => 'addszkic(user);'));
$this->addElement('submit', 'submit', array('ignore' => true, 'label' => 'Save'));
$this->addElement('hash', 'csrf', array('ignore' => true));
}
示例8: init
public function init()
{
parent::init();
// add submit
$submit = new Zend_Form_Element_Submit("submit");
$submit->setLabel("Enviar");
$submit->setAttribs(array('class' => 'btn btn-primary form-control'));
$this->addElement($submit);
$this->setElementsDefaultAttribs();
}
示例9: init
public function init()
{
parent::init();
$this->setMethod('post');
$this->addElement('text', 'email', array('label' => 'Your email address:', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('EmailAddress'), 'ng-model' => 'user.email', 'validator' => 'required'));
$this->addElement('text', 'firstname', array('label' => 'Firstname:', 'required' => true, 'validators' => array(array('validator' => 'StringLength', 'options' => array(0, 50))), 'ng-model' => 'user.firstname', 'validator' => 'required'));
$this->addElement('text', 'lastname', array('label' => 'Lastname:', 'required' => true, 'validators' => array(array('validator' => 'StringLength', 'options' => array(0, 50))), 'ng-model' => 'user.lastname', 'validator' => 'required'));
$this->addElement('button', 'zrobszkic', array('ignore' => true, 'label' => 'Zrob szkic', 'ng-click' => 'addszkic(user)'));
$this->addElement('submit', 'submit', array('ignore' => true, 'label' => 'Save'));
$this->addElement('hash', 'csrf', array('ignore' => true));
}
示例10: init
public function init()
{
$this->setMethod('post');
parent::init();
$this->_setLabels();
$this->_setAttribs();
$this->_setOptions();
$this->_setRequireds();
$this->_setValue();
$this->_removeDecorator();
$this->_addContentElement();
}
示例11: init
public function init()
{
$this->setAttrib('id', 'uploader');
$this->addElement('file', 'fileupload', array('class' => 'btn btn-success fileinput-button', 'attributes' => 'multiple', 'title' => 'Search for files'));
$this->addElement('Button', 'start', array('label' => 'Start Upload', 'class' => 'btn btn-primary start', 'escape' => false));
$this->addElement('Button', 'cancel', array('label' => 'Cancel Upload', 'class' => 'btn btn-warning cancel', 'escape' => false));
$this->addElement('Button', 'delete', array('label' => 'Delete', 'class' => 'btn btn-danger delete', 'escape' => false));
$this->fileupload->setDecorators(array('File', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'span')), array('Label', array('tag' => 'span')), array(array('row' => 'HtmlTag'), array('tag' => 'span'))));
$this->start->setDecorators(array('ViewHelper'));
$this->cancel->setDecorators(array('ViewHelper'));
$this->delete->setDecorators(array('ViewHelper'));
$this->setAction('/database/ajax/upload');
parent::init();
}
示例12: init
public function init()
{
$lang = Zend_Registry::get('lang');
$this->setMethod('post');
$this->setName('addgame_form');
$this->setAction($this->_getUrl('planing', 'addgame'));
$this->setAttrib('lang', $lang);
$this->setAttrib('enctype', 'multipart/form-data');
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'planing/newgame.phtml'), 'Form')));
$gameName = $this->createElement('text', 'gameName', array('class' => 'form-element', 'placeholder' => $lang->_('GAMENAME')));
$gameName->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
$submit = $this->createElement('submit', 'submit', array('class' => 'btn btn-finish', 'label' => $lang->_('FINISH')));
$this->addElements(array($gameName, $submit));
parent::init();
}
示例13: init
public function init()
{
$lang = Zend_Registry::get('lang');
$this->setMethod('post');
$this->setName('addgoal_form');
if ($this->_goalname != NULL) {
$this->setAction($this->_getUrl('admin', 'updategoal'));
} else {
$this->setAction($this->_getUrl('admin', 'savegoal'));
}
$this->setAttrib('lang', $lang);
$this->setAttrib('enctype', 'multipart/form-data');
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'admin/addgoal.phtml'), 'Form')));
$goalName = $this->createElement('text', 'goalName', array('class' => 'form-element', 'placeholder' => $lang->_('GOAL_NAME')));
$goalName->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
if ($this->_goalname != NULL) {
$goalName->setValue($this->_goalname);
}
$goalLevel = $this->createElement('text', 'goalLevel', array('class' => 'form-element', 'placeholder' => $lang->_('GOAL_LEVEL')));
$goalLevel->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
if ($this->_goallevel != NULL) {
$goalLevel->setValue($this->_goallevel);
}
$grade1 = $this->createElement('text', 'grade1', array('class' => 'form-element', 'placeholder' => $lang->_('GRADE1')));
$grade1->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
if ($this->_grade1 != NULL) {
$grade1->setValue($this->_grade1);
}
$grade2 = $this->createElement('text', 'grade2', array('class' => 'form-element', 'placeholder' => $lang->_('GRADE2')));
$grade2->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
if ($this->_grade2 != NULL) {
$grade2->setValue($this->_grade2);
}
$grade3 = $this->createElement('text', 'grade3', array('class' => 'form-element', 'placeholder' => $lang->_('GRADE3')));
$grade3->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
if ($this->_grade3 != NULL) {
$grade3->setValue($this->_grade3);
}
$grade4 = $this->createElement('text', 'grade4', array('class' => 'form-element', 'placeholder' => $lang->_('GRADE4')));
$grade4->setRequired(true)->addErrorMessage($lang->_('REQUIRED_FIELD'));
if ($this->_grade4 != NULL) {
$grade4->setValue($this->_grade4);
}
$submit = $this->createElement('submit', 'submit', array('class' => 'btn btn-finish', 'label' => $lang->_('FINISH')));
$this->addElements(array($goalName, $goalLevel, $grade1, $grade2, $grade3, $grade4, $submit));
parent::init();
}
示例14: init
public function init()
{
//make sure we call parent init first
parent::init();
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'partials/_modifyAnnuityProduct.phtml'))));
//Make required element changes
$this->setAttrib('name', 'modifyProductAnnuityForm');
// Product Company Name Element
$this->addElement('text', 'product_company_name', array('label' => 'Company Name:', 'required' => false, 'disabled' => 'disabled'));
// Product Name Element
$this->addElement('text', 'product_name', array('filters' => array('StringTrim'), 'label' => 'Product Name:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Product Name...'))), array('StringLength', true, array(1, 100)))));
// Premium Bonus Element
$this->addElement('text', 'product_premiumbonus', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Premium Bonus:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Premimum Bonus or 0...'))), new FFR_Form_Validator_ValidFloat(), array('StringLength', true, array(1, 10)))));
// Minumu Guarantee Element
$this->addElement('text', 'product_minguarantee', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Minimum Guarantee:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Minimum Guarantee...'))), new FFR_Form_Validator_ValidFloat(), array('StringLength', true, array(1, 50)))));
// Max Age Element
$this->addElement('text', 'product_maxage', array('filters' => array('StringTrim', new Zend_Filter_Digits()), 'label' => 'Max Age:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Maximum Age...'))), array('StringLength', true, array(1, 4)))));
// Minimum Premium Element
$this->addElement('text', 'product_minpremium', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Minimum Premium:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Minimum Premium...'))), new FFR_Form_Validator_ValidFloat(), array('StringLength', true, array(1, 15)))));
// Liquidity Element
$this->addElement('text', 'product_liquidity', array('filters' => array('StringTrim'), 'label' => 'Liquidity:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Product Liquidity...'))), array('StringLength', true, array(1, 100)))));
// Surrender Charges Element
$this->addElement('text', 'product_surrendercharges', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Surrender Charges:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter Surrender Charges or 0...'))), new FFR_Form_Validator_ValidFloat(), array('StringLength', true, array(1, 200)))));
// Product Notes Element
$this->addElement('textarea', 'product_notes', array('filters' => array('StringTrim'), 'Label' => 'Product Notes:', 'cols' => '30', 'rows' => '4', 'validators' => array(array('NotEmpty', true))));
// Death Benefit Element
$this->addElement('text', 'product_deathbenefit', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Death Benefit:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter the Death Benefit...'))), new FFR_Form_Validator_ValidFloat())));
// Waivers Element
$this->addElement('text', 'product_waivers', array('filters' => array('StringTrim'), 'label' => 'Waivers:', 'required' => false, 'validators' => array(array('NotEmpty', true))));
// Charge Backs Element
$this->addElement('text', 'product_chargebacks', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Charge Backs:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Product Charge backs or 0...'))), new FFR_Form_Validator_ValidFloat())));
//Add ProductId Element
$this->addElement('hidden', 'product_id', array('required' => true));
// Company Name Id
$this->addElement('hidden', 'product_company_id', array('required' => true));
// Category Id
$this->addElement('hidden', 'product_category_id', array('required' => true));
// Category Name
$this->addElement('hidden', 'product_category_name', array('required' => true));
/**
* Buttons
*/
$this->addElement('button', 'saveCloseButton', array('Label' => 'Save & Close', 'class' => 'ui-state-default float-left ui-corner-all ui-button'));
$this->getElement('saveCloseButton')->removeDecorator('DtDdWrapper');
$this->addElement('button', 'saveContinueButton', array('Label' => ' Save ', 'class' => 'ui-state-default float-right ui-corner-all ui-button'));
$this->getElement('saveContinueButton')->removeDecorator('DtDdWrapper');
}
示例15: init
public function init()
{
//make sure we call parent init first
parent::init();
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'partials/_modifyLifeProduct.phtml'))));
//Make required element changes
$this->setAttrib('name', 'modifyProductLifeForm');
// Product Company Name Element
$this->addElement('text', 'product_company_name', array('label' => 'Company Name:', 'required' => false, 'disabled' => 'disabled'));
// Product Name Element
$this->addElement('text', 'product_name', array('filters' => array('StringTrim'), 'label' => 'Product Name:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Product Name...'))), array('StringLength', true, array(1, 250)))));
// Premium Bonus Element
$this->addElement('text', 'product_premiumbonus', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Premium Bonus:', 'required' => true, 'validators' => array(array('NotEmpty', true), array('StringLength', true, array(1, 10)))));
// Product Type Element
$this->addElement('select', 'product_type', array('label' => 'Policy Type:', 'required' => true, 'multioptions' => array('' => '***Policy Type***', 'Term Life' => 'Term Life', 'Whole Life' => 'Whole Life'), 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to select the Prduct Type...'))))));
// Max Age Element
$this->addElement('text', 'product_maxage', array('filters' => array('StringTrim', new Zend_Filter_Digits()), 'label' => 'Max Age:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Maximum Age...'))), array('StringLength', true, array(1, 4)))));
// Minimum Premium Element
$this->addElement('text', 'product_minpremium', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Minimum Premium:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Minimum Premium...'))), new FFR_Form_Validator_ValidFloat())));
// Maximum Premium Element
$this->addElement('text', 'product_maxpremium', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Maximum Premium:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Maximum Premium...'))), new FFR_Form_Validator_ValidFloat())));
// Product Notes Element
$this->addElement('textarea', 'product_notes', array('filters' => array('StringTrim'), 'Label' => 'Product Notes:', 'cols' => '30', 'rows' => '4', 'validators' => array(array('NotEmpty', true))));
// Max Death Benefit Element
$this->addElement('text', 'product_maxdeathbenefit', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Max Death Benefit:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Maximum Death Benefit...'))), new FFR_Form_Validator_ValidFloat())));
// Min Death Benefit Element
$this->addElement('text', 'product_mindeathbenefit', array('filters' => array('StringTrim', new Zend_Filter_LocalizedToNormalized(array('precision' => 2))), 'label' => 'Minimum Death Benefit:', 'required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to enter a Minimum Death Benefit...'))), new FFR_Form_Validator_ValidFloat())));
// Insurance Riders Element
$this->addElement('multicheckbox', 'product_riders', array('label' => 'Insurance Riders:', 'required' => true, 'multioptions' => array('LTC Rider' => 'LTC Rider', '2nd-to-Die' => '2nd-to-Die', 'Other Riders' => 'Other Riders', 'None' => 'None'), 'validators' => array(array('NotEmpty', true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'You are required to select the appropriate Riders or None...'))))));
//Add ProductId Element
$this->addElement('hidden', 'product_id', array('required' => true));
// Company Name Id
$this->addElement('hidden', 'product_company_id', array('required' => true));
// Category Id
$this->addElement('hidden', 'product_category_id', array('required' => true));
// Category Name
$this->addElement('hidden', 'product_category_name', array('required' => true));
/**
* Buttons
*/
$this->addElement('button', 'saveCloseButton', array('Label' => 'Save & Close', 'class' => 'ui-state-default float-left ui-corner-all ui-button'));
$this->getElement('saveCloseButton')->removeDecorator('DtDdWrapper');
$this->addElement('button', 'saveContinueButton', array('Label' => ' Save ', 'class' => 'ui-state-default float-right ui-corner-all ui-button'));
$this->getElement('saveContinueButton')->removeDecorator('DtDdWrapper');
}