/** * Show template list by theme * * @param integer $id_theme Theme ID * @param string $theme_name Theme name * @return void */ public function index($id_theme, $theme_name) { // load dictionary $this->dict->get_wordarray(array('templates')); // get page $page = $this->get_page('templates/index'); // content $view = new X4View_core('container'); $view->content = new X4View_core('themes/template_list'); $view->content->page = $page; $view->content->id_theme = $id_theme; $view->content->theme = $theme_name; $mod = new Template_model(); // installed templates $view->content->tpl_in = $mod->get_tpl_installed($id_theme); // installable templates $view->content->tpl_out = $mod->get_tpl_installable($id_theme, $theme_name); $view->render(TRUE); }