f / f-bootstrap-form
PHP Bootstrap 表单助手
v4.1
2016-10-13 01:03 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-18 18:58:59 UTC
README
PHP Bootstrap 表单助手 4.0(之前为 PFBC/PHP 表单构建类)
最新功能
- 支持 Bootstrap 3 和 4
- 添加了新的简单 API。旧 API 仍然支持
- 添加了 'shared' 元素属性,用于在 SideBySide 视图中共享多元素之间的 1 行
- 将视图类重命名为 FormView 类
- 添加了 Form::renderArray() 辅助函数
- 修复了 prepend 和 append 属性的处理
- 为按钮添加了图标属性
新 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 ();