I want to use a custom load->view that once created will load a group of views for the page. It would have the same functionality of the $this->load->view() but have the ability to pre-load other views as well. How would I write this and have it work? thanks
<?php
class MY_Loader extends CI_Loader
{
function __construct()
{
parent::__construct();
}
function admin_view($load_page, $vars=array())
{
$this->load->view('admin/header');
$this->load->view($load_page);
$this->load->view('admin/footer');
}
function members_view()
{
//same purpose as admin view
}
function public_view()
{
//same purpose as admin view
}
}