Download the PHP package cruiser13/zend1-bootstrap3 without Composer
On this page you can find all versions of the php package cruiser13/zend1-bootstrap3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cruiser13/zend1-bootstrap3
More information about cruiser13/zend1-bootstrap3
Files in cruiser13/zend1-bootstrap3
Package zend1-bootstrap3
Short Description Twitter Bootstrap v.3 Forms for Zend Framework v.1 extended
License MIT
Informations about the package zend1-bootstrap3
Twitter Bootstrap 3 Form for Zend Framework 1 extended
This library was originally created by @zfbase and forked by @wendrowycz This is an extended version, adding an HTML element, inline form option with labels, form-group class option and more.
Form types
The library supports all Bootstrap 3 form types.
One PHP code
OR
HTML generated for vertical form
The form must be inherited from class Twitter_Bootstrap3_Form_Vertical
.
HTML generated for horizontal form
The form must be inherited from class Twitter_Bootstrap3_Form_Horizontal
.
HTML generated for inline form
The form must be inherited from class Twitter_Bootstrap3_Form_Inline
.
To use inlineforms with labels you can use the class Twitter_Bootstrap3_Form_Inlinelabel
.
If you are using inline forms, the dimensions will not be set of course. If you need dimensions, you can add them using the attribute formgroupclass like this:
This will give you the following output:
You can also use bootstrap addons on inputs. Something like this:
will generate the following input group:
Supported controls
The library supports all Zend Framework 1 and Bootstrap 3 form elementes.
All example present for vertical form.
Inputs
Most common form control, text-based input fields. Includes support for all HTML5 types: text
, password
, datetime
, datetime-local
, date
, month
, time
, week
, number
, email
, url
, search
, tel
, and color
.
Textarea
Checkboxes and radios
One checkbox
One checkbox without hidden field (might come in handy if jquery or others are being used on name)
MultiCheckbox
Radios
Inline multicheckbox and radio
Selects
One value
Multiple
Buttons
Includes support for button types: button
, submit
, reset
and image
.
Simple text
Element static
is an alias of element note
.
Other decorated elements
The library also contains elements for decorators: file
, hidden
, hash
and captcha
.
This does also contain HTML5 Input Types like the range element. Usage like this:
The other HTML5 Input Types are tel, url, date, time, datetime and datetimelocal.
If you need to use HTML unescaped in labels or descriptions you can use this snippet:
If you like using addons, use code like this:
All versions of zend1-bootstrap3 with dependencies
zf1s/zend-controller Version 1.13
zf1s/zend-file Version ^1.13
zf1s/zend-file-transfer Version ^1.13
zf1s/zend-filter Version ^1.13
zf1s/zend-form Version ^1.13
zf1s/zend-view Version 1.13