Dan Rossi wrote:
Aljosa Mohorovic wrote:
what to do if i want my url to look like "pages/edit/1" and then it
translates to:
controller => pages
action/method => edit
and finally some var inside controller/method that contains "1" or
whatever is located after action/method?

how can i accomplish this?

Aljosa Mohorovic

By default it would be /pages/edit/id/1 for instance then you can get the param with the variable id.

Id like to be able to change it aswell so on one of the controllers for instance, so i just need to do /edit/id/1 instead of referencing the controller aswell ! As of now would have to do /index/view/id/1 for the index controller.

You need to do some Routing changes then, also using ID as a URL variable is not good practice as Google consider this a reserved variable, and can hamper indexing.


Reply via email to