Пример #1
0
 /**
  * Constructs new Form instance
  * @param string $method
  * @param string $action
  * @param string $name
  */
 public function __construct($method = 'post', $action = '', $name = '')
 {
     $this->method = strtoupper($method);
     $this->name = $name;
     $this->action = $action;
     if (Form::AUTO_PREPEND_CSRF && !$this->hasField('csrfToken')) {
         Input::csrf()->addToForm($this);
     }
 }