|
Size: | 8585 |
Storage flags: | no_autoload,compress/gzip (32%) |
Zend\Form\Element\Image represents a image button form input. It can be used with the Zend\Form\View\Helper\FormImage view helper.
Zend\Form\Element\Image extends from Zend\Form\Element.
Basic Usage
This element automatically adds a "type" attribute of value "image".
1 2 3 4 5 6 7 8 | use Zend\Form\Element;
use Zend\Form\Form;
$image = new Element\Image('my-image');
$image->setAttribute('src', 'http://my.image.url'); // Src attribute is required
$form = new Form('my-form');
$form->add($image);
|
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.