protected function detectHelp() { if (!Session::get('help_shown')) { Session::set('help_shown', false); } $this->presenter->assign('help_shown', Session::get('help_shown')); $help_file = 'admin_help/' . $this->class . '_' . $this->event . '.tpl'; if (file_exists(DOC_ROOT . '/presentation/' . $help_file) || file_exists(Util::getLocation() . '/tpl/' . $help_file)) { $help_file = 'elib:/' . $help_file; $this->presenter->assign('help_file', $help_file); } }
private function assignELibTemplateDir() { $tpl_loc = Util::getLocation() . '/tpl'; $this->assign('elibtpl', $tpl_loc); }