Problem setting routes in HMVC |
Hello guys,
I am quite new to CodeIgniter and MVCs. I started working on this new project and installed the HMVC from wiredesignz . I encounter a HMVC routing problem and this thing drives me CRAZY! My problem is that my routing is not working properly. I write you the details of my CI3 project. application/config config.php PHP Code: $config['base_url'] = 'http://localhost/Hub2/'; routes.php PHP Code: //$route['(:any)'] = 'pages/view/$1'; application/modules/authentication/controllers/Login.php application/modules/authentication/model/User.php application/modules/authentication/view/login_box.php application/modules/pages/controllers/Pages.php application/modules/pages/view/template/....... my .htacess from the root directory Code: <IfModule mod_rewrite.c> Here is my Login Class: PHP Code: <?php MY_Controller PHP Code: class MY_Controller extends MX_Controller When I can access the following links: http://localhost/Hub2/ returns me correctly the Modules/Pages/Controllers/Pages/View http://localhost/Hub2/login returns me Not Found. The requested URL /Hub2/login was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. http://localhost/Hub2/awesome returns me Not Found. The requested URL /Hub2/awesome was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. http://localhost/Hub2/index.php/login returns me correctly the Modules/Authentication/Controllers/Login/Index http://localhost/Hub2/index.php/awesome returns me correctly the Modules/Pages/Controllers/Pages/Index |
Welcome Guest, Not a member yet? Register Sign In |