Implements interfaces:
Enables amfPHP to receive and reply with JSON This plugin can be deactivated if the project doesn't need to support JSON strings and returned as JSON strings using POST parameters.
You must add the 'application/json' content type, or set it in the headers so that it is recognized as a call to be handled by this plugin. for example: http://yourserver.com/Amfphp/?contentType=application/json
Here is some sample code using Javascript with JQuery:
Requires at least PHP 5.2.
Located in /Amfphp/Plugins/AmfphpJson/AmfphpJson.php (line 33)
constructor. Add filters on the HookManager.
If the content type contains the 'json' string, returns this plugin
Retrieve the serviceName, methodName and parameters from the PHP object
representing the JSON string
don't format; just throw! In this way ajax libs will have their error functions triggered
Encode the PHP object returned from the service call into a JSON string
Documentation generated on Tue, 29 May 2012 23:42:00 +0200 by phpDocumentor 1.4.3