How to use Yii controller located in folder rather than default `protected/controller`?

[font=Arial,][size=4]In Yii, when access to <app-host>/index.php?r=<mycontroller>/<myaction>, the framework will start to run code in protected/controller/<MyController>Controller.php[/size][/font]

[font=Arial,][size=4]I want to that code to be located in another folder, says protected/anotherFolder. How to do that?[/size][/font]



[font=Arial,][size=4]I also post this one on SO.[/size][/font]

You can use controllerMap -

Awesome! Thank you!