Welcome Guest, Not a member yet? Register   Sign In
Good practice of ME app organisation
#1

[eluser]crnalajna[/eluser]
I need a help how to start with HMVC (Modular Extensions)...

What is good practice of ME app organisation?

Should I start with some "landing" controller with remap method like this?
Code:
function _remap() {

        $data['some_data'] = ...

        $module = $this->uri->segment(1);
        $method = $this->uri->segment(2);
        
        $data['content'] = modules::run($module, $data, $method);
        
        $this->load->view('layout', $data);
    }

Main layout, I think, should left outside module folder and also all basic elements like menu and etc, if I'm not wrong. Smile
ps. I did search forum for the answer but I didn't find the right one




Theme © iAndrew 2016 - Forum software by © MyBB