Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Author Tama Pratama
- */
- class template
- {
- protected $CI;
- function __construct()
- {
- $this->CI =& get_instance();
- }
- function render($url, $data){
- $this->CI->load->view("template/header", $data);
- $this->CI->load->view($url);
- $this->CI->load->view("template/footer");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement