Bootstrapper\Form::search PHP Method

    public function search($name, $value = null, $attributes = array())
    {
        $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
        return parent::input('search', $name, $value, $attributes);
    }

Usage Example

Example #1
0
 /**
  * Creates a search element
  *
  * @param string $name The name of the element
  * @param null $value
  * @param array $attributes
  * @return string 
  * @static 
  */
 public static function search($name, $value = null, $attributes = array())
 {
     return \Bootstrapper\Form::search($name, $value, $attributes);
 }