24 lines
541 B
PHP
24 lines
541 B
PHP
<?php
|
|
class Form_getIdentite extends Zend_Form
|
|
{
|
|
public function init()
|
|
{
|
|
$this->setName('soapform');
|
|
$this->setAction('/demo/requete');
|
|
$this->setMethod('post');
|
|
$this->addElement('text', 'siret', array(
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array(
|
|
array('stringLength',false,array(9,14)),
|
|
array('NotEmpty', true),
|
|
),
|
|
'label' => 'Siret : ',
|
|
'required' => 'true',
|
|
)
|
|
);
|
|
$this->addElement('submit', 'submit', array(
|
|
'label' => 'Envoyez',
|
|
));
|
|
|
|
}
|
|
} |