Example #1
0
 public function get()
 {
     $security = new \Lib\Security();
     $tokenName = $security->csrfTokenName();
     $this->view->template($this->pageTemplate('media_screen_login'));
     $this->components(array("login as content"));
     $this->view->data(array('url_authenticate' => \Lib\Http\Http::url('/login'), 'url_recover_password' => \Lib\Http\Http::url('/login'), 'loginTokenName' => $tokenName, "{$tokenName}" => md5(uniqid(rand(), true))));
 }
Example #2
0
 /**
  *
  */
 protected function setCanonicalUrl($path)
 {
     $this->view->data(array('canonicalURL' => \Lib\Http\Http::url($path)));
 }