ACC SHELL

Path : /srv/www/vhosts/toptisk/application/forms/
File Upload :
Current File : /srv/www/vhosts/toptisk/application/forms/Newsletter.php

<?php

class Default_Form_Newsletter extends Zend_Form
{
    public function init()
    {
        $this->setMethod('post')
                ->setAction("/" . $this->getView()->lang . "/kontakt/newsletter-process");
        
        $this->addElement('text', 'jmeno', array(
            'filters'    => array('StringTrim', 'StripTags'),
            'validators' => array(                
                array('StringLength', false, array(3, 100)),
            ),
            'required'   => true,
            'label'      => 'Jméno*:',
        ));
        
        $this->addElement('text', 'email', array(
            'filters'    => array('StringTrim', 'StripTags'),
            'validators' => array(
                array('StringLength', false, array(5,100)),
                'EmailAddress',
            ),
            'required'   => true,
            'label'      => 'Email*:',            
        ));
        
        $this->addElement('submit', 'odeslat', array(
            'required' => false,
            'ignore'   => true,
            'label'    => 'Odeslat',
            'class'     => 'button',
        ));
        
        $this->setDecorators(array(
            'FormElements',
            array('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')),
            array('Description', array('placement' => 'prepend')),
            'Form'
        ));
    }
}

ACC SHELL 2018