public function other($arg = false) { /*echo "We are inside other</br>"; echo "Optional: " . $arg . "<br>";*/ require "models/help_model.php"; $model = new Help_model(); $this->view->msg = $model->blah(); $this->view->rander('help/index'); }
/** * Help on site * * @param boolean $render Switch the rendering * @return void */ public function local($render = true) { // load dictionaries $this->dict->get_wordarray(array('help')); // get page $page = $this->get_page('help'); $view = new X4View_core('container'); $view->content = new X4View_core('sites/help'); $view->content->page = $page; $mod = new Help_model(); $view->content->items = $mod->get_subpages($page); if ($render) { $view->render(TRUE); } else { return $view; } }