title: Zend Framework app as a web service
body: <p>I'm developing a zend framework app that's just going to act as a web service. I have no need to ever output HTML at any point in the application and don't even want the overhead of creating empty view files.</p>
  
  <p>I want my app to output XML by default, JSON if requested (via the format parameter would be fine).</p>
  
  <p>Is there any way to do this without explicitly defining the context switching rules in the init() part of every controller?</p>