Ejemplo n.º 1
0
 public function open(array $options = [], $type = null)
 {
     if (!is_null($type)) {
         $this->type = $type;
     }
     return parent::open($options);
 }
Ejemplo n.º 2
0
 public function open(array $options = [], $type = 'horizontal')
 {
     // Set the form type
     $this->setType($type);
     // Make sure the form has the proper class
     $formClass = $this->allowedTypes[$this->type];
     $options = $this->verifyHasOption($options, 'class', $formClass);
     return parent::open($options);
 }