3

In my application fornt end is MVC and backend HMVC. I have an issue in backend urls.I define all my front end urls in routes.php.(not backend)

like this

$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";

But this affect my backend working(case 3 parameter passing)

Any solution for this

tereško
  • 58,060
  • 25
  • 98
  • 150
robins
  • 1,668
  • 6
  • 33
  • 69

1 Answers1

0

Try adding route for admin url before

$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";

like

$route['admin/(:any)'] = 'admin/index/$1';
$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";

or if you want to do some hack then:

if(strpos($_SERVER["REQUEST_URI"],'admin/') === false){
  $route['(.+)/(.+)/(.+)'] = "homes/abc/$1";
}
Pawnesh Kumar
  • 484
  • 2
  • 10