Xform (Plugin) extends cakephp Form helper.

Maintainers

Package info

github.com/pieceofcake2/xform

Type:cakephp-plugin

pkg:composer/pieceofcake2/xform

Statistics

Installs: 290

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.2 2025-10-09 07:02 UTC

This package is auto-updated.

Last update: 2026-03-09 07:54:04 UTC


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.