src/html/Form.php
public function init ()
		{
			if (!in_array($this->layout, [ 'default', 'horizontal', 'inline' ]))
				throw new InvalidConfigException('Invalid layout type: ' . $this->layout);

			if ($this->layout !== 'default')
				Html::addCssClass($this->options, 'form-' . $this->layout);

			if ($this->name)
				$this->options[ 'name' ] = $this->name;

			parent::init();
		}
public function init ()
		{
			if (!in_array($this->layout, [ 'default', 'horizontal', 'inline' ]))
				throw new InvalidConfigException('Invalid layout type: ' . $this->layout);

			if ($this->layout !== 'default')
				Html::addCssClass($this->options, 'form-' . $this->layout);

			if ($this->name)
				$this->options[ 'name' ] = $this->name;

			parent::init();
		}
public function init ( ) { if ( ! in_array ( $ this -> layout , [ 'default' , 'horizontal' , 'inline' ] ) ) throw new InvalidConfigException ( 'Invalid layout type: ' . $ this -> layout ) ; if ( $ this -> layout !== 'default' ) Html :: addCssClass ( $ this -> options , 'form-' . $ this -> layout ) ; if ( $ this -> name ) $ this -> options [ 'name' ] = $ this -> name ; parent :: init ( ) ; }
Adds some default configuration. I.e. form name and layout class.

@inheritdoc
Adds some default configuration . I . e . form name and layout class .