Form->input('email_subject', [ 'type' => 'text_field_wid2sr', 'label' => 'Email Subject' ]); ?>
Form->input('search_query', [ 'type' => 'text_field_wid2sr', 'label' => 'Search Query', 'required' => true ]); ?>This example creates a required input field for the search query. A user must fill out this field before submitting the form. Package library: This form field is part of the CakePHP framework.