/** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a Error object. * * @since 3.6 */ public function display($tpl = null) { // Do not allow cache $this->app->allowCache(false); $foldersModel = $this->getFoldersModel(); $currentFolder = $foldersModel->getCurrentFolder(); $folders = $foldersModel->getFolders(); $filesModel = $this->getFilesModel(); $files = $filesModel->setFileFilter($this->getFileFilter())->getFiles(); $state = $this->get('state'); $this->currentFolder = $currentFolder; $this->files = $files; $this->folders = $folders; $this->state = $state; return parent::display($tpl); }
/** * {@inheritdoc} */ public function noCache() { $this->_app->allowCache(false); $this->_noCache(); }