Public Member Functions

BeFormHelper Class Reference

BeFormHelper class. More...

List of all members.

Public Member Functions

 csrf ()
 Return an input type hidden with a csrf token To use in combination with CsrfComponent to prevent CSRF attack.
 create ($model=null, $options=array())
 Returns an HTML FORM element.

Detailed Description

BeFormHelper class.

extends CakePHP FormHelper adding some functionality

Definition at line 29 of file be_form.php.


Member Function Documentation

BeFormHelper::create ( model = null,
options = array() 
)

Returns an HTML FORM element.

Use parent FormHelper::create() and optionally add csrf input hidden

See also:
FormHelper::create()
Parameters:
string $model The model object which the form is being defined for
array $options An array of html attributes and options.
Returns:
string An formatted opening FORM tag.

Definition at line 56 of file be_form.php.

References csrf().

BeFormHelper::csrf (  ) 

Return an input type hidden with a csrf token To use in combination with CsrfComponent to prevent CSRF attack.

Returns:
string

Definition at line 37 of file be_form.php.

Referenced by create().


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus