Skip to content

Alez/html5input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

html5input

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

how to install

composer require alez/html5input

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);
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages