Cake\View\Helper\FormHelper::textarea PHP Метод

textarea() публичный Метод

### Options: - escape - Whether or not the contents of the textarea should be escaped. Defaults to true.
public textarea ( string $fieldName, array $options = [] ) : string
$fieldName string Name of a field, in the form "modelname.fieldname"
$options array Array of HTML attributes, and special options above.
Результат string A generated HTML text input element
    public function textarea($fieldName, array $options = [])
    {
        $options = $this->_initInputField($fieldName, $options);
        unset($options['type']);
        return $this->widget('textarea', $options);
    }

Usage Example

 public function textarea($fieldName, array $options = array())
 {
     $options += ['rows' => 3];
     $options = $this->_injectStyles($options, 'form-control');
     return parent::textarea($fieldName, $options);
 }
All Usage Examples Of Cake\View\Helper\FormHelper::textarea