Revision 147 | Revision 309 | 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 );if ( $data['template_folder'] ){$this->smarty->template_dir = array(APPPATH . "views/templates/" . $data['template_folder'],$this->smarty->template_dir,);}$this->smarty->assign( 'shopPosition', $data['subdir']['shopPosition'] );$this->smarty->view( 'subdir.tpl', $data );}}?>