Jump to content

Zend Switching View/Multiple Output Formats


Recommended Posts


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!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.