1. Go to this page and download the library: Download cruiser13/zend1-bootstrap3 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cruiser13 / zend1-bootstrap3 example snippets
class Application_Form_Example extends Twitter_Bootstrap3_Form_*
{
public function init()
{
$email = new Twitter_Bootstrap3_Form_Element_Email('email');
$email->setLabel('Email')->setAttrib('placeholder', 'Email');
$email->setRequired(true);
$password = new Zend_Form_Element_Password('password');
$password->setLabel('Password')->setAttrib('placeholder', 'Password');
$checkbox = new Zend_Form_Element_Checkbox('checkbox');
$checkbox->setLabel('Remember me');
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel('Sign in');
$this->addElements(array(
$email,
$password,
$checkbox,
$submit
));
}
}
$this->addElement('multiCheckbox', 'multiCheckbox', array(
'multiOptions' => array(
'option1' => 'Option one is this and that — be sure to
$this->addElement('radio', 'radio', array(
'multiOptions' => array(
'option1' => 'Option one is this and that — be sure to abled',
),
'label' => 'Radio',
'value' => 'option1',
'disable' => array('option3'),
'escape' => false,
));
$distanceinput = new Twitter_Bootstrap3_Form_Element_Range('distanceinput');
$distanceinput->setAttrib('min','5')->setAttrib('max','50')->setAttrib('step','5');
$distanceinput->setLabel('Distance in kilometers');
$distanceinput->setDescription('Set the distance in kilometers here');