Hi, I'd like some help please. I'm using CI v.3.0.2 and I have set up HMVC modularity from wiredesignz, so my folder structure look like this
Code:
- application
---- modules
-------- posts
----------- controllers
--------------- Admin.php
--------------- Post.php
----------- models
I have aslo set the routes for my "admin" pages like this, which works great
PHP Code:
$route['admin/([a-zA-Z_-]+)/(:any)'] = '$1/admin/$2';
$route['admin/([a-zA-Z_-]+)/(:any)/(:num)'] = '$1/admin/$2/$3';
$route['admin/login'] = 'admin/login';
$route['admin/logout'] = 'admin/logout';
$route['admin/([a-zA-Z_-]+)'] = '$1/admin/index';
$route['admin'] = 'admin';
I want to set up as default route the Post.php for the front end, so when I tried:
PHP Code:
$route['default_controller'] = 'post';
// or
$route['default_controller'] = 'post/index';
I get a 404 error. Could you tell me what I'm doing wrong and how to fix this ?