Working on the codeigniter project stuck with the routes I N / Company / Login to En / login , how do I define routes?
Right now the code looks like this:
// '/ en / about' - & gt; About 'controller' '$ route [' ^ (N | LV) / (. +) $ '] = "$ 2"; // '/ en', '/ lv' URI - & gt; Use Default Controller $ route ['^ (N | LV) $'] = $ route ['default_controller']; $ Route ['company / login'] = "login"; Tried
:
$ route ['^ (en | lv) / company / login'] = "login";
Obviously, I did not get anything, can you please help?
Your problem is (I have the same) that it:
$ Route ['^ (en | lv) / (. +) $'] = "$ 2";
Overrides your rule for:
$ route ['^ (en | lv) / company / login'] = " Login ";
Try this:
$ route ['^ (en | lv) \ / (company) \ / (. +) $'] = " log in";
It is possible that you should first help to override the pattern.
And if not, first edit the pattern:
$ route ['^ (N | LV) \ / (?! Company). + $ '] = "$ 2";
No comments:
Post a Comment