/** * @return string * @throws \Neuron\Exceptions\DataNotSet */ public function getForm() { $template = new Template('CatLab/Accounts/authenticators/password/form.phpt'); $template->set('action', URLBuilder::getURL($this->module->getRoutePath() . '/login/' . $this->getToken())); $template->set('register', URLBuilder::getURL($this->module->getRoutePath() . '/register/' . $this->getToken())); $template->set('email', $this->request->input('email')); return $template->parse(); }
private function setTemplate(Template $template) { $this->setBody($template->parse()); $this->setOutput(new HTML()); return $this; }