This is my first hmvc attempt and it's going wrong... I'm trying to separate my site zones through different modules. My intention then is control the access using ion_auth for hmvc. Thats my initial structure:
/application
/modules <-- hmvc
/public_zone
/controller
public_zone.php
/view
...
/private_zone
...
So, to do this (being installed hmvc on core and third_party folders) I tried to setup as 'default_controller' the 'public_zone' controller. His mission is load the root page ('localhost'), but *it returns a 404 error.*
This is my public_zone.php file:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Public_zone extends MX_Controller {
public function index()
{
$this->load->view('include/header');
$this->load->view('frontpage');
$this->load->view('include/footer');
}
}
Maybe the problem is on routes.php (application/config/routes.php) file? I'll tried this:
$route['default_controller'] = "public_zone";
$route['404_override'] = '';
Anyone can tell me what Im doing wrong? For sure I misunderstood some hmvc concept... But the fact is I don't know why it doesn't works :(