[eluser]Unknown[/eluser]
Sure. Here's the class that will insert all the views into the main template. There's just the view for the menu at the moment. I added a Menu class in the library.
class Welcome extends Controller {
function Welcome(){
parent::Controller();
}
function index()
{
//require_once('menu.php');
//$ct = new Menu();
$this->load->library('menu');
$data['menu']=$this->menu->index();
$this->load->view('maintemplate',$data);
}
}
And here's the beginning of the function in the Menu class
function index(){
global $CI;
//$CI = & get_instance();
throws the error
$query = $CI->db->query("select (*) from entries");