SHARE
TWEET

Untitled

a guest Oct 21st, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.   class Template{
  4.       private $ci = null;
  5.       private $args = [];
  6.  
  7.     public function __construct(){
  8.       $this->CI = & get_instance();
  9.     }
  10.  
  11.     function set($name, $value){
  12.       $this->template_data[$name] = $value;
  13.     }
  14.  
  15.     public function display($template = '', $view = '', $view_data = array(), $return = false){
  16.  
  17.       $this->set('contents', $this->CI->load->view($view, $view_data, true));
  18.       return $this->CI->load->view($template, $this->template_data, $return);
  19.     }
  20.   }
  21.  
  22. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top