container->application); Template::addJs('media://js/solo/encryption.js', $this->container->application); Template::addJs('media://js/solo/update.js', $this->container->application); return parent::display($tpl); } public function onBeforeMain() { /** @var Update $model */ $model = $this->getModel(); $this->updateInfo = $model->getUpdateInformation(); $this->needsDownloadId = $this->getModel('Main')->needsDownloadID(); if ($this->updateInfo->get('stuck', 0)) { $this->layout = 'stuck'; } return true; } }