Welcome Guest, Not a member yet? Register   Sign In
Multiple Sub-folders and Controllers in Module
#1

[eluser]kerell78us[/eluser]
Hey Guys, I have searched the forum but to no available. I am using wiredesignz HMVC Modular extension.

It works fine except that I am seeking to push it a bit further but am encountering some issues.

I have the Admin Section of my site am using Routes to rewrite the url only for that section, for e.g.

Modules ->
Extensions ->
Controllers ->
----> extensions.php

Admin ->
----> admin.php
Payments ->
----> Paypal.php
----> Moneybookers.php
----> Paypoint.php

I am able to load "localhost/extensions/admin" without any issues how I keep getting "404 Page Not Found" when I trying to load "localhost/extensions/admin/payments/paypal"

Below is the rewrite rules in my route.php file store in my module config folder

Code:
$route['extensions/admin/module/([a-zA-Z_-]+)/(:any)'] = "extensions/admin/module/$1/$2";
$route['extensions/admin/module/([a-zA-Z_-]+)/'] = "extensions/admin/module/$1/index";

Any assistance would be greatly appreciated guys




Theme © iAndrew 2016 - Forum software by © MyBB