First, add it as an extension to parse:
Router::parseExtensions('txt');
Then, create a connection route:
Router::connect('/simple.txt', array('controller' => 'examplecontroller', 'action' => 'simple');
Now you will control the output of http://yourproject.com/simple.txt
inside simple()
method inside examplecontroller
and in simple.ctp
view.
It's not the way exactly you specified, but it works for sure and it's done the "cake way"