pieceofcake2/xform 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pieceofcake2/xform

最新稳定版本:v2.0.2

Composer 安装命令:

composer require pieceofcake2/xform

包简介

Xform (Plugin) extends cakephp Form helper.

README 文档

README

GitHub License Packagist Version PHP CakePHP CI Codecov

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.

  1. in controller $this->params['xformHelperConfirmFlag'] = true;
  2. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-05