• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expression trouble...

#3
[eluser]danoph[/eluser]
i found a solution.

$route['^(?!store|sell).*'] = "home/$0";

this allows for multiple controllers (store and sell) as well as functions within a certain controller (home) to use simple urls:

http://localhost/contact (uses home controller, function contact)
http://localhost/sell (uses sell controller)
http://localhost/store (uses store controller)


Messages In This Thread
regular expression trouble... - by El Forum - 07-18-2007, 01:24 PM
regular expression trouble... - by El Forum - 07-18-2007, 02:19 PM
regular expression trouble... - by El Forum - 07-18-2007, 02:19 PM
regular expression trouble... - by El Forum - 07-18-2007, 02:23 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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