avbdr/php-bootstrap-form

PHP Bootstrap 表单助手

v4.0 2016-05-11 13:55 UTC

This package is not auto-updated.

Last update: 2024-09-26 00:27:29 UTC


README

PHP Bootstrap 表单助手 4.0(之前为 PFBC/PHP 表单构建类

文档 :: 讨论 :: 问题

元素演示 :: 源代码

Bootstrap4 元素演示 :: 源代码

支持我

这个软件是在我的空闲时间开发的,如果有人支持我,我会很高兴。

每个人的时间都应该很宝贵,所以请考虑捐赠。

通过 PayPal 捐赠

最新功能

  1. 支持 Bootstrap 3 和 4
  2. 添加了新的简单 API。旧 API 仍然支持
  3. 添加了 'shared' 元素属性,以便在 SideBySide 视图中在多个元素之间共享 1 行
  4. 将视图类重命名为 FormView 类
  5. 添加了 Form::renderArray() 辅助函数
  6. 修复了 prepend 和 append 属性处理
  7. 为按钮添加了图标属性

新 API

Form::open ("login");
echo '<legend>Login</legend>';
Form::Hidden ("id");
Form::Email ("Email Address:", "email", array("required" => 1));
Form::Password ("Password:", "password", array("required" => 1));
Form::Checkbox ("", "remember", array("1" => "Remember me"));
Form::Button ("Login");
Form::Button ("Cancel", "button", array("onclick" => "history.go(-1);"));
Form::close ();