Skillbooker
Login Register

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:

echo  $form->hidden( 'Model.name', array( 'value' => 'fieldvalue' ) ); 



Posted on: 2016-06-01 Please login/register to leave comments