Welcome Guest, Not a member yet? Register   Sign In
passing URI based variable and variable inside class
#1

Hello,

exampler URL,-- example.com/index.php/products/shoes/sandals/123

This will pass as like below.

public function shoes($sandals, $id)
{
echo $sandals;
echo $id;
}

But how do we pass another variable along with URI segments? example if i declare $var = 'test' in class then how to access that in method?

Thanks,
Reply


Messages In This Thread
passing URI based variable and variable inside class - by jigapate - 06-18-2015, 01:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB