Welcome Guest, Not a member yet? Register   Sign In
HMVC Layout system
#1

[eluser]Unknown[/eluser]
Hi everyone :-) (sorry for my english, it's not my born language)
I need some help to construct a layout system with HMVC. (I mean a controller wich autoload header, menu, footer, etc...).
Before using HMVC, I did that with a function in MY_Controller.php. This function triggered à master view like that:

<?php
$this->load->view('front/layout/doctype');
$this->load->view('front/layout/header');
$this->load->view('front/modules/'.$module.'/'.$view, $data);
$this->load->view('front/layout/footer');
?>

But now with HMVC, it's not possible to do like that anymore. I'm coming here to ask you some help to make it in the best possible way.

Thanks a lot.


Messages In This Thread
HMVC Layout system - by El Forum - 06-03-2009, 06:36 PM
HMVC Layout system - by El Forum - 06-03-2009, 07:36 PM
HMVC Layout system - by El Forum - 06-04-2009, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB