<< Back
How to set the value attribute of a hidden field in the form helper in cakephp
How to set the value attribute of a hidden field in the form helper in cakephp
In order to set the value of a hidden field in cakephp you can do it like this:
Published: 1st June 2016 byecho $form->hidden( 'Model.name', array( 'value' => 'fieldvalue' ) );