Author Topic: Zend Switching View/Multiple Output Formats  (Read 724 times)

0 Members and 1 Guest are viewing this topic.

Offline sprinklesTopic starter

  • Irregular
  • Posts: 17
    • View Profile
Zend Switching View/Multiple Output Formats
« on: March 09, 2009, 02:09:01 PM »
Hi,
I'm developing a mobile site that needs to be able to use either XHTML or WML, depending on the device capabilities.
I'd like to keep the same controllers and models, but am unsure of the best way to achieve switching the output format.
The way that seems logical would be to switch views. I can't see how to do this, though, and I'm not certain it's the best practice.
The other option I can think of would be to have logic in the view to decide which to output, but that seems very messy.
Any advice is appreciated, thanks!