Never echo inside the controller, this will break a lot of stuff ;) Pass output as template variable