Bootstrapper\Form::horizontalModel PHP Метод

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

Opens a horizontal form with a given model
См. также: Bootstrapper\Form::horizontal()
См. также: Illuminate\Html::model()
public horizontalModel ( mixed $model, array $attributes = [] ) : string
$model mixed
$attributes array
Результат string
    public function horizontalModel($model, $attributes = [])
    {
        $attributes['class'] = isset($attributes['class']) ? self::FORM_HORIZONTAL . ' ' . $attributes['class'] : self::FORM_HORIZONTAL;
        return $this->model($model, $attributes);
    }

Usage Example

Пример #1
0
 /**
  * Opens a horizontal form with a given model
  *
  * @param mixed $model
  * @param array $attributes
  * @return string 
  * @see Bootstrapper\Form::horizontal()
  * @see Illuminate\Html::model()
  * @static 
  */
 public static function horizontalModel($model, $attributes = array())
 {
     return \Bootstrapper\Form::horizontalModel($model, $attributes);
 }