Revision 505 | Revision 520 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?php/*** @author Lars Tiefland* @copyright 2016*/class Category extends CI_Controller{public function __construct(){parent::__construct();$this->load->model('category_model', 'category');if (ENVIRONMENT == "production"){$this->output->cache(120);}}public function view($id){$data["subdir"] = $this->category->get_dir_items($id);$this->smarty->assign('title', $data['subdir']['Name'].' - '.$GLOBALS['INI']['titel_only']);$this->smarty->assign('artstaemmeItems', $data['subdir']['artstaemmeItems']);if ($data['subdir']['template_folder']){$this->smarty->template_dir = array(APPPATH."views/templates/".$data['subdir']['template_folder'],$this->smarty->template_dir,);}$this->smarty->assign('shopPosition', $data['subdir']['shopPosition']);$this->smarty->view('subdir.tpl', $data);}}?>