Urlmanager Rules

This is driving me mental.

Given


REQUEST_URI=/foo/index.php?r=emails/update&id=2

what is the rule to mutate this to


/foo/index.php?r=email/update&id=2

(note missing “s” on second URL), please? I’m just getting ‘Unable to resolve the request “emails/update”.’, whatever I try. I’m using


'urlFormat'=>'get'

in case it’s not obvious.

Please double check your Controller name.

That is not the problem. If that was the problem then something like

‘/emails/update/id/2’=>‘email/update/id/2’

with ‘urlFormat’=>‘path’ would not work, but it does.