Welcome Guest, Not a member yet? Register   Sign In
Routing or remap
#1

(This post was last modified: 09-30-2015, 06:58 AM by ernestlambert.)

I have the controller "profiles" and I want the URI "/profile/1" to map to "/profiles/view/1" also "/property/1" should map to "/properties/view/1. I want to do this for all my controllers so is there a way of writing a general rules in the routes file or via remap so that the singular of the class name followed by a slash and a number routes to the class name followed by "/view/" and the number?
Reply


Messages In This Thread
Routing or remap - by ernestlambert - 09-30-2015, 06:39 AM
RE: Routing or remap - by Martin7483 - 09-30-2015, 07:44 AM
RE: Routing or remap - by ernestlambert - 09-30-2015, 08:33 AM
RE: Routing or remap - by Martin7483 - 09-30-2015, 11:01 AM
RE: Routing or remap - by ngangchill - 09-30-2015, 08:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB