Multiple Template |
Hello all
i want to ask about how can posible we build template system like wordpress template. so user can make their own template and just upload it the file to the backend
Hello,
Maybe you can do something like this : application/core/MY_Controller.php PHP Code: class MY_Controller extends CI_Controller application/views/front.php PHP Code: <html> application/controllers/Your_controller.php PHP Code: class Your_controller extends MY_Controller
Hello
Example PHP Code: $config['template_dir'] = 'my_design'; In back end select template dir In controller PHP Code: $data['content'] = $this->load->view($template_dir . '/page_tpl', $data, true); |
Welcome Guest, Not a member yet? Register Sign In |