|
Size: | 8599 |
Storage flags: | no_autoload,compress/gzip (32%) |
Zend\Form\Element\Button represents a button form input. It can be used with the Zend\Form\View\Helper\FormButton view helper.
Zend\Form\Element\Button extends from ZendFormElement.
Basic Usage
This element automatically adds a type attribute of value button.
1 2 3 4 5 6 7 8 9 | use Zend\Form\Element;
use Zend\Form\Form;
$button = new Element\Button('my-button');
$button->setLabel('My Button')
->setValue('foo');
$form = new Form('my-form');
$form->add($button);
|
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.