public function preExecute() { /** @var EiUserTable $table */ $table = Doctrine_Core::getTable('EiUser'); $this->token = $this->getRequest()->getParameter("token"); $this->user = $table::getInstance()->getUserByTokenApi($this->token); $this->forward404If(is_bool($this->user) && $this->user === false, "You are not allowed to access this page."); $this->user = $this->user->getGuardUser(); }