Class BeFormHelper
BeFormHelper class
extends CakePHP FormHelper adding some functionality
-
FormHelper
-
BeFormHelper
Methods summary
public
string
|
#
csrf( )
Return an input type hidden with a csrf token
To use in combination with CsrfComponent to prevent CSRF attack
Return an input type hidden with a csrf token
To use in combination with CsrfComponent to prevent CSRF attack
Returns
string
|
public
string
|
#
create( string $model = null, array $options = array() )
Returns an HTML FORM element.
Use parent FormHelper::create() and optionally add csrf input hidden
Returns an HTML FORM element.
Use parent FormHelper::create() and optionally add csrf input hidden
Parameters
- $model
- The model object which the form is being defined for
- $options
- An array of html attributes and options.
Returns
string An formatted opening FORM tag.
See
FormHelper::create()
|