Welcome Guest, Not a member yet? Register   Sign In
I am sick of bad CodeIgniter's URL errors handling. I am going to Laravel
#3

[eluser]Narf[/eluser]
[quote author="term25" date="1352288513"]
btw. this is not working:

Code:
$route['article/(:num)'] = 'article/$1';
[/quote]

... not true and this is exactly what you need to use here.

Furthermore, these are routes, not filters or sanitizers. Whatever you do with those values afterwards is up to you and the router has no way of knowing that you'll pass them to a database.


Messages In This Thread
I am sick of bad CodeIgniter's URL errors handling. I am going to Laravel - by El Forum - 11-07-2012, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB