2017 © Pedro Peláez
 

library html5input

Input that accept type as a parameter, so you can make type="email" or any other types.

image

alez/html5input

Input that accept type as a parameter, so you can make type="email" or any other types.

  • Wednesday, October 28, 2015
  • by alez
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

html5input

Plugin to use with Zend Framework 1. Allows you to use html5 form elements such as "email" or "number" or whatever., (*1)

how to install

composer require alez/html5input, (*2)

how to use

<?php

class My_Form extends Zend_Form
{
    public function init()
    {
        $email = new Html5Input_Element_AnyType('email', array(
            'type'       => 'email',
            'filters'    => array('StringTrim', 'StringToLower'),
            'validators' => array(
                array('EmailAddress'),
            ),
            'required'    => true,
            'placeholder' => 'Email',
        ));

        $this->addElement($email);
    }
}

The Versions

28/10 2015

dev-master

9999999-dev

Input that accept type as a parameter, so you can make type="email" or any other types.

  Sources   Download

BSD

The Requires

 

by Avatar alez

form zf1 zend html5