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]Regards[/size][/font]

[font=Arial,][size=4]ps.[/size][/font]

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

You can use controllerMap - http://www.yiiframework.com/doc/api/1.1/CWebApplication#controllerMap-detail

Awesome! Thank you!