Flex with sfAmfPlugin part 2
25. August 2008 in doctrine, Flex, Model, Symfony
Today I released a new version of my sfAmfPlugin for the symfony Framework. Main focus of this release was the support of Doctrine. Now you can transfer Doctrine_Recordset- and Doctrine_Collections directly without mapping the values. As you can see in the following listing there is nothing to do for you to use this feature.
class HelloWorld extends sfAmfService {
public function sayHello($message) {
$result = Doctrine::getTable('Menu')->findAll();
return $result;
}
}
So you can transfer your Doctrine classes directly to the Flex-Client.
You can find more information on the Plugin homepage.
I will keep on working on the plugin so stay tuned for upcoming changes
Alex said on 27. August 2008
Hi, can you post a complete example?
Timo Haberkern said on 27. August 2008
Hi,
yes I can do so. But it will need some time to prepare this. Did you face any special problems?
Timo
Alex said on 3. September 2008
Thanks
I don’t know where to start
How i call the remoting service from Flash / Flex?
Timo Haberkern said on 3. September 2008
I hope i can do this new article over the weekend
Timo
João Barbosa said on 30. September 2008
You should provide a complete example working. It’s lacking client side documentation. An example of Flex RemoteObject usage would be nice.
chok said on 4. October 2008
Hi,
I use this plugin(very usefull:D) but I have big trouble with class mapping.
It’s possible to have an example too?
Thanks a lot
chok
Snowcore said on 20. October 2008
I’m looking forward for this article
I’m also interested in integration Flex and Symfony.
Kai said on 15. November 2008
This is a really great plugin!
As displayed on the symfony website its compatible to sf 1.1 only.
Before i try it myself: Is there a problem with sf 1.2 ?
As far as I can see, there should be anithing o.k..
Anyway: Your Book is great and this plugin too.
Keep on Working
digitaldeath said on 14. April 2009
Please please post some flex example…I’m getting crazy about it
Timo Haberkern said on 15. April 2009
Just published a blog post http://www.symfony-zone.com/wordpress/2009/04/15/helloworld-example-with-flex-and-symfony/trackback/
sophia said on 22. April 2009
Hi,
I am sorry to tell you that,after doing what you say above,when I run my project,I received an error message:
RFC Fault faultString=”send failed” faultCode=”client.error.MessageSend” faultDetail=”Channel.Security.Error error Error”.
Can you help me to fill the problem?
I have followed the steps above.
Vince said on 13. October 2009
Hi,
I tried to implement the sfAmfPlugin into my symfony project. Everything is clear, except when I try to debug through the “AmfPHP class browser” (http://myProject/amfphp/browser/index.html). I had to add the following lines at the begining of my class :
require_once dirname(__FILE__).’/../../config/ProjectConfiguration.class.php’;
ProjectConfiguration::getApplicationConfiguration(‘frontend’, ‘dev’, true);
My problem is that I can’t use Doctrine into my functions => ‘There is no connection’ (or a message like it). I verify my database.yml : it’s ok.
Thanks for your answers
Lem said on 23. October 2009
Does anyone have a working example?
The way I’m dealing with it is returning a Doctrine collection from my PHP and on flex side make something like array = results[0].
Not sure is the best way to deal with it.
sergio said on 19. May 2010
I have my example working I used this page http://www.symfony-zone.com/wordpress/2009/04/15/helloworld-example-with-flex-and-symfony/
Does any one an example about transfering arrays from symfony to flex?
dagrinchi said on 1. September 2010
sfAmfPlugin don’t works with doctrine 1.*, but with doctrine 2 works fine!