/** * Initialization * * @param string $action * @return void */ public function __construct($action = NULL, array $attributes = []) { $this->attributes = $attributes; $this->templates = defined('FORM_TEMPLATES') ? FORM_TEMPLATES : __DIR__ . '/templates/'; $this->action = $action; if (Session::has('__formerrors')) { $this->bind = true; $this->bindings = Session::get('__forminputs'); } }
public function check() { return Session::has('__auth_user'); }