pieceofcake2/xform
最新稳定版本:v2.0.2
Composer 安装命令:
composer require pieceofcake2/xform
包简介
Xform (Plugin) extends cakephp Form helper.
关键字:
README 文档
README
This is forked for CakePHP2.
Extends cakephp Form helper.
Installation
composer require pieceofcake2/xform
Config
- load plugin in bootstrap
CakePlugin::load('Xform'); - Include the helper in your
controller.php:var $helpers = array('Form', 'Xform.Xform'); - call method of XformHelper in your view.
echo $this->Xform->input('title');
Usage
On confirmation screen, this helper just show value of post data instead of making form tags.
On form input screen, this helper behaves same as form helper.
How does this helper know on confirmation screen? When the confirmation transition, do following 1 or 2.
- in controller
$this->params['xformHelperConfirmFlag'] = true; - in controller or view file
$this->XformHelper->confirmScreenFlag = true;
If you want to mask a password field on confirmation screen, use password method instead of input method.
If you want to change separator of datetime, set separator value on the changeDatetimeSeparator property.
统计信息
- 总下载量: 145
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-05