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); }
/** * @param Script $script * @return $this */ public function addScript(Script $script) { self::$scripts[$script->getName()] = $script; return $this; }
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')]); }