Category: output
-
XML Output with the Yii Framework
My quick solution for getting the Yii Framework to display XML data. I’m just going to give the code from a project that I’m working, so substitute in your own names where necessary. OverviewFiles to create: protected/views/[your_class]/[your_action].php protected/views/layouts/[your_xml_layout].php Files to modify: protected/controllers/[your_controller].php In general, the approach is as follows. Create a layout that wraps our…