/**
  * @inheritdoc
  */
 public function create($selector = 'form', array $options = [], array $data = [])
 {
     $options = array_replace_recursive(['messages' => static::flatten($this->messages)], $options);
     $data = array_replace_recursive([], $data);
     return parent::create($selector, $options, $data);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function create($selector = 'form', array $options = [], array $data = [])
 {
     $options = array_replace_recursive([], $options);
     $data = array_replace_recursive(['rules' => null], $data);
     return parent::create($selector, $options, $data);
 }