Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Template{
- private $ci = null;
- private $args = [];
- public function __construct(){
- $this->CI = & get_instance();
- }
- function set($name, $value){
- $this->template_data[$name] = $value;
- }
- public function display($template = '', $view = '', $view_data = array(), $return = false){
- $this->set('contents', $this->CI->load->view($view, $view_data, true));
- return $this->CI->load->view($template, $this->template_data, $return);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement