Quick Route Question - it doesn't work! |
[eluser]xzela[/eluser]
If i understand you correctly, this might help (though i have not tested it, so it may not work) Code: $routes[(':num)')] = 'pets/view/$1'; and hopefully your controller looks like this: Code: class Pets extends Controller { The routes will pass whatever is entered in the url: http://example.com/<animal> to the view function view(<animal>); I hope that made sense, and I hope it worked. |
Messages In This Thread |
Quick Route Question - it doesn't work! - by El Forum - 01-28-2009, 04:40 PM
Quick Route Question - it doesn't work! - by El Forum - 01-28-2009, 06:15 PM
Quick Route Question - it doesn't work! - by El Forum - 01-28-2009, 08:19 PM
Quick Route Question - it doesn't work! - by El Forum - 01-28-2009, 09:58 PM
Quick Route Question - it doesn't work! - by El Forum - 01-28-2009, 11:03 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 12:03 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 02:51 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 03:20 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 03:28 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 03:53 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 04:02 PM
Quick Route Question - it doesn't work! - by El Forum - 01-29-2009, 10:14 PM
Quick Route Question - it doesn't work! - by El Forum - 01-30-2009, 01:22 AM
Quick Route Question - it doesn't work! - by El Forum - 01-30-2009, 02:44 AM
Quick Route Question - it doesn't work! - by El Forum - 01-30-2009, 02:53 AM
|