Welcome to the Cookbook

loading...

7.3.5.19 text

There is no translation yet for this section. Please help out and translate this.. More information about translations

text(string $fieldName, array $options)

Creates a text input field.

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

Will output:

<input name="data[User][first_name]" value="" id="UserFirstName" type="text">