Yii routes, change controller name

Hi,

I have a module and controller setup as follows …

moduleName/controllerName/actionName/ID

I want to change the controllerName using routes without having to modify my controller name in my code, is this possible?

So …

book/author/view/13

I want to change the "author" to say "teapot", can someone show me how?

Hi,

Its Ok, I have done it now.

Solution …

Use this as the Yii route rule …




'newControllerName/<action:\w+>' => 'originalControllerName/<action>'



James.