Welcome to the Cookbook

loading...
Please login to continue

7.3.5.12 hidden

hidden(string $fieldName, array $options)

Creates a hidden form input. Example:

<?php
echo $form->hidden('id');
?>
  1. <?php
  2. echo $form->hidden('id');
  3. ?>

Will output:

<input name="data[User][id]" value="10" id="UserId" type="hidden">