sfAmfPlugin 1.5.0 released
11. January 2010 in AMF, Flex, Symfony
Hi all,
I have just released the version 1.5.0 of the sfAmfPlugin.You can get it from here.
The new version brings some fixes and new features. Most noteably:
- Updated version of SabreAMF inlcuded (latest development version)
- Symfony 1.3 and 1.4 Support
- First version of a AMF Service Browser (thanks to BenoƮt Gouchet)
The plan for the next version shows improvements for Class Mapping, VO and Caching. And I promise to create a better documentation for it…
and1hotsauce said on 23. January 2010
Hello,
It works fin with ymfony 1.2 but i can’t get it work with symfony 1.4. The gateway give a “Login Required” (the amfgateway module). I’ve tried with a fresh new project without changing the “is_secure” but same problem.
I’ve also have followed this tutorial : http://www.symfony-zone.com/wordpress/2009/04/15/helloworld-example-with-flex-and-symfony/. But same problem.
Any idea ?
Thanks
Guille said on 24. February 2010
Hello,
I’ve been using the amfbrowser and found one little bug:
In the amfbrowser template, the url for each service is ‘…/amfBrowser/..’ but that url doesnt work (at least for me). So I changed the file to ‘…/amfbrowser/…’ and worked well.
In second place, i’ve been trying without success, to send to my service an object as parameter. The amfbrowser get it as a string or a bad formatted JSON.
How should I do to write the object to pass it as parameter? Cause i followed the instructions you wrote on the README file, but that doesnt work for me.
Thanks in advance
Sergio Marcano said on 2. March 2010
I have the same problem.
i’ve tried many things and nothing..
we should keep working and share the solution.
regards
sergio said on 2. March 2010
I`have the same problem.
did you find the solution?
Regards
Patrick Schirch said on 7. March 2010
@and1hotsauce
The correct value for is_secure option in “modules/amfgateway/config/security.yml” is “false” not “off”. The value “off” won’t disable the security function in newer symfony versions.
Sharif said on 7. June 2010
How do i map my doctrine classes with amfclassmappnig? or do i need to create a new object and interate over the result set to return it. Also when im passing a valueObject from flex to the server, it complains about the paramater needs to be of type valueObject.
So for example… TeamVO as a param… but yet it complains the param is not TeamVO.
Markus Staab said on 31. July 2010
the next step would be to generate also the flash classes for the client side, so we can use the doctrine models also on the client.
Rakesh said on 10. September 2010
Hi Timo,
I have used your plugin and it worked great. There is only one little glitch – when I try to add data to current session using say …
$this->user->setAttribute(‘username’, $username); in login method of a service class
and then try to access this value in another method of the same class later – a error is generated. Is there any way to propoagate and access value using $this->user->getAttribute.
Note: My service class looks like this –
context = sfContext::createInstance($configuration);
$this->user = $this->context->getUser();
}
public function login($username, $password){
// code to validate $username and $password from database
if ($result) {
// put values in session variables
$this->user->setAttribute(‘username’, $username);
}
}
public function anothermethod(){
// try to access session variable now, **Doesn’t Work **
return $this->user->getAttribute(‘username’);
}
?>
any clues would be greatly appreciated. thanks & regards,
Rakesh
Rakesh said on 10. September 2010
The service class again **
Note: My service class looks like this –
require_once dirname(FILE).’/../../config/ProjectConfiguration.class.php’;
class UsersService extends sfAmfService {
public function construct() {
parent::construct();
$configuration = ProjectConfiguration::getApplicationConfiguration(‘frontend’, ‘dev’, true);
$this->context = sfContext::createInstance($configuration);
$this->user = $this->context->getUser();
}
public function login($username, $password){
// code to validate $username and $password from database
if ($result) {
// put values in session variables
$this->user->setAttribute(‘username’, $username);
}
}
public function anothermethod(){
// try to access session variable now, **Doesn’t Work **
return $this->user->getAttribute(‘username’);
}
Alexander said on 17. December 2010
Hi!
Great thing!
But the really big pain is to write *.as classes for doctrine ORM… the only solution i’ve found is Flextrine (http://code.google.com/p/flextrine2/) but it works only with Doctrine 2 & PHP 5.3(i don’t know hosting that support it =))
May be you already have some *.as generator?
j_ulio14 said on 11. July 2011
Hello, I would like to know how to map class AS3 with class PHP ?
Thanks