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…

11 responses to sfAmfPlugin 1.5.0 released

  1. 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 ;-)

  2. 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

  3. I have the same problem.

    i’ve tried many things and nothing..
    we should keep working and share the solution.
    regards

  4. I`have the same problem.

    did you find the solution?

    Regards

  5. @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.

  6. 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.

  7. 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.

  8. 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

  9. 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’);

    }

  10. 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? ;)

  11. Hello, I would like to know how to map class AS3 with class PHP ?
    Thanks

Leave a reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>