Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ichikaway/xformHelper
extends cakephp form helper.
https://github.com/ichikaway/xformHelper
Last synced: 3 months ago
JSON representation
extends cakephp form helper.
- Host: GitHub
- URL: https://github.com/ichikaway/xformHelper
- Owner: ichikaway
- Created: 2010-04-12T13:47:15.000Z (over 14 years ago)
- Default Branch: 2.0
- Last Pushed: 2019-09-27T08:33:14.000Z (about 5 years ago)
- Last Synced: 2024-07-16T11:38:22.973Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 18
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
XFormHelper(Plugin)
extends cakephp Form helper.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.Installation
------------
* Copy the files in this directory into app/Plugin/Xform
* 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');