[eluser]Reaven[/eluser]
Hi everybody
My throuble its with "automatic" routing ...or something similar..
I have this function
public function editComplement($refItem = false)
And in routes file
'admin/complements/edit/(:num)' => 'paneldegestion/editComplement/$1',
The server is "passing" the param (:num) as "refItem" in function editComplement.
The uri mydomain.com/admin/complements/edit/1 sets var $refItem value like the four element on the URL, in this case the number one, when really should be "false".
Sorry for "spaninglish"
.
I don't have idea why codeignater it's doing that... in my local works fine but in test server do that.
Any idea?
Thanks!