Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC Routing problem
#1

[eluser]Unknown[/eluser]
Hello,

I have some odd issue with HMVC and routes.php in config folder. before having the Modular Extensions files placed into the Library and helper folders everything was working perfectly! but after that i'm just getting 404 error! also by ignoring the show_404($file); line in My_Router.php this message is appearing:


Code:
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.


What I'm trying to do is simply introducing the custom routing to my administrator controller and its folder which is working without having HMVC My_router.php file in my library folder.

This is what i have in routes.php for re-routing to the administrator controller located inside the administrator folder in controller :


system -> application -> controllers -> administrator -> main.php
Code:
$route['administrator'] = "administrator";

and in administrator controller


Code:
class Main extends Controller {

    function __construct()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->view('welcome_message');
    }
}

I am guessing that somehow My_router.php is overriding the routes.php in config folder and doesn't allow Router.php to load the defined address's.

Just wondering if you guys have any idea abut how to solve this issue? Many Thanks.

My CI version is: 1.6 and the HMVC version is: 4.2.06


Messages In This Thread
Modular Extensions - HMVC Routing problem - by El Forum - 07-28-2008, 10:02 AM
Modular Extensions - HMVC Routing problem - by El Forum - 07-28-2008, 03:07 PM
Modular Extensions - HMVC Routing problem - by El Forum - 08-04-2008, 05:51 AM
Modular Extensions - HMVC Routing problem - by El Forum - 08-04-2008, 06:42 AM
Modular Extensions - HMVC Routing problem - by El Forum - 09-22-2008, 09:01 AM
Modular Extensions - HMVC Routing problem - by El Forum - 09-22-2008, 09:12 AM
Modular Extensions - HMVC Routing problem - by El Forum - 09-22-2008, 09:21 AM
Modular Extensions - HMVC Routing problem - by El Forum - 09-22-2008, 09:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB