예제 #1
0
 /**
  * @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();
 }
예제 #2
0
 private function setTemplate(Template $template)
 {
     $this->setBody($template->parse());
     $this->setOutput(new HTML());
     return $this;
 }