Welcome Guest, Not a member yet? Register   Sign In
HMVC: Routing issue
#11

[eluser]qpixo[/eluser]
[quote author="weboap" date="1337281650"]in : application/config/routes.php

Code:
//add
$route['^(?!login|backend).*'] = "site/$0";


[/quote]

If I understand this line, it's actually disallow login or backend (optional) and all of its sub controllers...


My issue is when submitting a login form, it doesn't redirect me to sub controller that I've defined. I've tried to remove '.*', it can go through but Now, my main public site controllers can't recognize

ex: www.site.com/site/contact (Page not found)


Code:
//add
$route['^(?!login|backend)'] = "site/$0";

#12

[eluser]CroNiX[/eluser]
That's not what that line says. It says, "if the requests first segment is not login or backend, then send the request to the site controller"




Theme © iAndrew 2016 - Forum software by © MyBB