Welcome Guest, Not a member yet? Register   Sign In
Controller routing question
#1

[eluser]blasto333[/eluser]
lets say I have a url like this:

http://localhost/index.php/customers/edi...3940682488

In my customers controller....

Code:
function edit($customer_id)
{
     echo $customer_id;
}

How come codeigniter does not complain that it cannot find a function with signature...
function edit ($customer_id,$randomstring)

I am kind of glad it doesn't, but is this a recommend practice.


The reason I am passing a random string is so ajax does not cache requests.


Messages In This Thread
Controller routing question - by El Forum - 10-13-2008, 05:35 PM
Controller routing question - by El Forum - 10-13-2008, 06:00 PM
Controller routing question - by El Forum - 10-13-2008, 06:04 PM
Controller routing question - by El Forum - 10-13-2008, 06:09 PM
Controller routing question - by El Forum - 10-13-2008, 06:11 PM
Controller routing question - by El Forum - 10-13-2008, 06:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB