Tag: xml

XML to JSON in PHP

XML to JSON in PHP

Zimuel writes; Last friday, in occasion of the April Zend Framework Bug-Hunt, I started to look at this bug: ZF-3257. This is an issue related to the Zend_Json class that occurs during the conversion from XML to JSON for some specific XML documents, like this one: $xml= ‘<a><b id="foo">bar</b></a>’; The result using Zend_Json::fromXml($xml, false) , […]

Read More
App_Controller_Helper_Params for JSON and XML POSTs

App_Controller_Helper_Params for JSON and XML POSTs

Matthew Weier O’Phinney shares a bit of very useful code to inject request params into a Zend Framework request object from a JSON or XML POST request. “Below is a plugin I use to translate JSON or XML raw post request data to request user parameters. Note that it expects a “Content-Type” header of either […]

Read More
Converting your Zend Framework MVC application into an XML webservice using one single plugin

Converting your Zend Framework MVC application into an XML webservice using one single plugin

Thijs Feryn writes an excellent article on how to convert your entire MVC app or one or more controllers into a XML service. I actually have this one in a production environment and it works like a charm.

That’s right folks, in this blog post I’ll show you how you can convert your entire MVC application into a REST-style XML webservice. And I’m not talking about refactoring tons of code … NO, we’ll plug this option in without changing a single thing to your action controllers.

Read More

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.