public function init()
    {
        $this->setName('contact');
        
        $this->add(
            array(
                'name' => 'street',
                'options' => array(
                        'label' => /* @translate */ 'Street'
                )
            )
        );
        
        $this->add(
            array(
                'name' => 'houseNumber',
                'options' => array(
                        'label' => /* @translate */ 'House Number'
                )
            )
        );
        
        $this->add(
            array(
                'name' => 'postalcode',
                'options' => array(
                        'label' => /* @translate */ 'Postal Code'
                )
            )
        );
        
        $this->add(
            array(
                'name' => 'city',
                'options' => array(
                        'label' => /* @translate */ 'City'
                )
            )
        );
        $this->add(
            [
                'name' => 'country',
                'options' => [
                    'label' => /* @translate */ 'Country'
                ]
            ]
        );
        $this->add(
            array(
                'name' => 'phone',
                'options' => array(
                    'label' => /* @translate */ 'Phone'
                )
            )
        );
        $this->add(
            array(
                'name' => 'fax',
                'options' => array(
                    'label' => /* @translate */ 'Fax'
                )
            )
        );
    }
public function init()
    {
        $this->setName('contact');
        
        $this->add(
            array(
                'name' => 'street',
                'options' => array(
                        'label' => /* @translate */ 'Street'
                )
            )
        );
        
        $this->add(
            array(
                'name' => 'houseNumber',
                'options' => array(
                        'label' => /* @translate */ 'House Number'
                )
            )
        );
        
        $this->add(
            array(
                'name' => 'postalcode',
                'options' => array(
                        'label' => /* @translate */ 'Postal Code'
                )
            )
        );
        
        $this->add(
            array(
                'name' => 'city',
                'options' => array(
                        'label' => /* @translate */ 'City'
                )
            )
        );
        $this->add(
            [
                'name' => 'country',
                'options' => [
                    'label' => /* @translate */ 'Country'
                ]
            ]
        );
        $this->add(
            array(
                'name' => 'phone',
                'options' => array(
                    'label' => /* @translate */ 'Phone'
                )
            )
        );
        $this->add(
            array(
                'name' => 'fax',
                'options' => array(
                    'label' => /* @translate */ 'Fax'
                )
            )
        );
    }
public function init ( ) { $ this -> setName ( 'contact' ) ; $ this -> add ( array ( 'name' => 'street' , 'options' => array ( 'label' => /* @translate */ 'Street' ) ) ) ; $ this -> add ( array ( 'name' => 'houseNumber' , 'options' => array ( 'label' => /* @translate */ 'House Number' ) ) ) ; $ this -> add ( array ( 'name' => 'postalcode' , 'options' => array ( 'label' => /* @translate */ 'Postal Code' ) ) ) ; $ this -> add ( array ( 'name' => 'city' , 'options' => array ( 'label' => /* @translate */ 'City' ) ) ) ; $ this -> add ( [ 'name' => 'country' , 'options' => [ 'label' => /* @translate */ 'Country' ] ] ) ; $ this -> add ( array ( 'name' => 'phone' , 'options' => array ( 'label' => /* @translate */ 'Phone' ) ) ) ; $ this -> add ( array ( 'name' => 'fax' , 'options' => array ( 'label' => /* @translate */ 'Fax' ) ) ) ; }
Set the elements for the contact form
Set the elements for the contact form