use _remap()
method. The _remap method always get called even if URI is different. It overrides the URI.public function _remap($methodName)
{
if ($methodName === 'a_method')
{
$this->method();
}
else
{
$this->defaultMethod();
}
}