Welcome Guest, Not a member yet? Register   Sign In
Problems with uri routing
#6

[eluser]Edemilson Lima[/eluser]
I am having a problem with a routing...

At my routes.php, I have:

Code:
$route['([a-z]+)/([0-9]+)'] = "$1/details/index/$2";

If I try to access something like: http://www.site.com/products/details/index/3
It works fine.
But, if I do it by the route: http://www.site.com/products/3
It calls products/details/index, but does not send the id code:

Code:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for Details::index()
Filename: products/details.php
Line Number: 11

"products" is a folder, "details" is the controller and "index" is its default function.

Any ideas?


Messages In This Thread
Problems with uri routing - by El Forum - 01-29-2008, 01:30 AM
Problems with uri routing - by El Forum - 01-29-2008, 01:40 AM
Problems with uri routing - by El Forum - 01-29-2008, 01:49 AM
Problems with uri routing - by El Forum - 01-29-2008, 02:00 AM
Problems with uri routing - by El Forum - 01-29-2008, 02:01 AM
Problems with uri routing - by El Forum - 01-29-2008, 11:06 AM
Problems with uri routing - by El Forum - 01-29-2008, 12:12 PM
Problems with uri routing - by El Forum - 01-29-2008, 12:20 PM
Problems with uri routing - by El Forum - 01-29-2008, 04:45 PM
Problems with uri routing - by El Forum - 01-29-2008, 06:38 PM
Problems with uri routing - by El Forum - 01-29-2008, 08:21 PM
Problems with uri routing - by El Forum - 01-30-2008, 04:29 AM
Problems with uri routing - by El Forum - 01-30-2008, 05:07 AM
Problems with uri routing - by El Forum - 01-30-2008, 04:12 PM
Problems with uri routing - by El Forum - 01-30-2008, 04:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB