New sfAmfPlugin release
29. June 2009 in General
I have just released a new version of my Symfony-Plugin sfAmfPlugin. The new version 1.4.0 has the following changes included:
- Added an error handler function. All Errors will now be delivered as an exception (thanks to raphox for this)
- Fixing problem with associative array values
- Updated SabreAmf to version 1.3.0
- Added correct content type support, you should now use the handleRequest method in your actions as shown in the documentation
You can now use the the plugin in your actions like this:
public function executeAmf(sfWebRequest $request) {
sfAmfGateway::getInstance()->handleRequest();
return sfView::NONE;
}
There is a lot of stuff coming for the next version of the plugin, so stay tuned
Josef van Niekerk said on 30. June 2009
After updating to 1.4.0, and updating my controller to be like in your example I get the following PHP error:
PHP Fatal error: Call to undefined method sfAmfGateway::handleRequest() in …actions\actions.class.php on line 15. Even after creating a new sf project it happens.
Timo Haberkern said on 1. July 2009
You are right. Sorry for this release. Should have tested this. I just released version 1.4.1 fixing this problem
Timo
Josef van Niekerk said on 1. July 2009
No probs, thanks for the great plugin, sfAmfPlugin really makes AMF easy! I’m using it on an Adobe AIR based Content Management System I’m building for the fun of it, and it works wonderfully!