I am new to CodeIgniter bu I know CakePHP pretty well.
If I rewrite the following:
test -> welcome/login
test/(:any) -> welcome/login/$1
When I write my links i want to put a link to “welcome/login/asdas” in code and to be parsed as “test/asdas”. CakePHP did that using the html link or router::url
EDIT:
What I mean is site_url(‘welcome/login/asd’) should return “test/asd”
I think that this is not possible. Actually, CodeIgniter just re-route your app from one URL to other using routes defined previously by yourself in
route.phpThis is the most far that you can go.
site_urlis an internal CodeIgniter function that returns your site URL as you specify inconfig.phpfileI’ll try to study
site_urlfunction located inurl_helper.phpfile (system/helpers/url_helper.php| Line 42) and modify it to do whatever I want.