|
Size: | 8434 |
Storage flags: | no_autoload,compress/gzip (32%) |
Zend\Form\Element\Text represents a text form input. It can be used with the Zend\Form\View\Helper\FormText view helper.
Zend\Form\Element\Text extends from Zend\Form\Element.
Basic Usage
This element automatically adds a "type" attribute of value "text".
1 2 3 4 5 6 7 8 | use Zend\Form\Element;
use Zend\Form\Form;
$text = new Element\Text('my-text');
$text->setLabel('Enter your name');
$form = new Form('my-form');
$form->add($text);
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.