private function loadScripts()
 {
     $jQuery = Script::run(['name' => 'jquery-1.11.3.min']);
     $request = Script::run(['name' => 'components/Request']);
     $url = Script::run(['name' => 'components/Url']);
     $dom = Script::run(['name' => 'components/Dom']);
     $this->dom->addScript($jQuery);
     $this->dom->addScript($request);
     $this->dom->addScript($url);
     $this->dom->addScript($dom);
 }
Example #2
0
 public function loadLoginPage()
 {
     $this->dom->addScript(Script::run(['name' => 'programs/Auth']));
     $this->view->loadTemplate('login', ['screenSrc' => $this->imgPath . $this->config->getField('screen'), 'userLogo' => $this->imgPath . $this->config->getField('userLogo')]);
 }