Hello,
I have the following code for checking if a method exist.
if (!method_exists($action))
{
$action="index";
}
The problem is it returns the index action always. When I remove the line $action = 'index'; it works fine, but doesn't check anything.
Any idea what's going wrong?