Bootstrapper\Form::textarea PHP Method

textarea() public method

public textarea ( string $name, string | null $value = null, array $attributes = [] ) : string
$name string The name of the text area
$value string | null The default value
$attributes array The attributes of the text area
return string
    public function textarea($name, $value = null, $attributes = array())
    {
        $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
        return parent::textarea($name, $value, $attributes);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Create a textarea input field.
  *
  * @param string $name The name of the text area
  * @param string|null $value The default value
  * @param array $attributes The attributes of the text area
  * @return string 
  * @param string $name
  * @param string $value
  * @param array $options
  * @return string 
  * @static 
  */
 public static function textarea($name, $value = null, $attributes = array())
 {
     return \Bootstrapper\Form::textarea($name, $value, $attributes);
 }