alez/html5input
Composer 安装命令:
composer require alez/html5input
包简介
Input that accept type as a parameter, so you can make type="email" or any other types.
README 文档
README
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); } }
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: bsd
- 更新时间: 2015-10-28