Which is an easy task compared to getting over mb since... well..
... ... he's not in California. ha! averted!
... ... he's not in California. ha! averted!
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Template { protected $CI; protected $heading; public function Template() { $this->CI =& get_instance(); $this->heading['page_title'] = 'Title--'; $this->heading['header_tag_insert'] = null; $this->heading['url'] = $this->CI->config->item('base_url'); } public function show($viewfile,$data = null,$head = null, $admin = null) { //change header vars if necessary, too add on the fly values or elements if (is_array($head)) { foreach ($head as $key => $value) { $this->heading[$key] = $value; } } $this->CI->load->library('parser'); //parse header vars, then show $this->CI->parser->parse('template/header', $this->heading); //load view file like normal- then template footer $this->CI->load->view($viewfile, $data); $this->CI->load->view('template/footer'); } } ?>