<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace LocalCar\Form;

 use Zend\Form\Form;

 class LocalCarForm extends Form
 {

    //private $name;

    public function __construct($name = null)
     {
         // we want to ignore the name passed
         parent::__construct('localcar');

         $this->add(array(
             'name' => 'id',
             'type' => 'Hidden',
         ));
         $this->add(array(
             'name' => 'chemin',
             'type' => 'Text',
             'options' => array(
                 'label' => 'Chemin',
             ),
         ));
         $this->add(array(
             'name' => 'nom',
             'type' => 'Text',
             'options' => array(
                 'label' => 'nom',
             ),
         ));
         $this->add(array(
             'name' => 'submit',
             'type' => 'Submit',
             'attributes' => array(
                 'value' => 'Go',
                 'id' => 'submitbutton',
             ),
         ));
         $this->name = $name;
    }
 }