• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routing or remap

#1
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.