Initial Commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
class Application_Form_V1_Test_Add extends Zend_Form
|
||||
{
|
||||
|
||||
public function init()
|
||||
{
|
||||
|
||||
$this->setMethod('post');
|
||||
$this->setName('testForm');
|
||||
$this->setAction('');
|
||||
|
||||
//$this->addElement('hidden', 'id');
|
||||
|
||||
$this->addElement('text', 'Nome',
|
||||
array(
|
||||
'filters' => array('StringTrim'),
|
||||
'validators'=>array('Alnum'),
|
||||
'required' => true
|
||||
)
|
||||
);
|
||||
|
||||
$this->addElement('text', 'Descrizione',
|
||||
array(
|
||||
'filters' => array('StringTrim')
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user