[osflash] [announcement] CakeAMFPHP 0.6.0 released

Marcelo de Moraes Serpa celoserpa at gmail.com
Wed Oct 25 08:04:25 EDT 2006


Hi Marco,

Thanks, nice solution...

Just found the page about Arrayf at amfphp.org:
http://amfphp.sourceforge.net/docs/manualrecordsets.html

PS.: Martin, have you already tried the new class-mapping (return class
objects instead of associative arrays, more Rails-like) features introduced
in Cake?

Cheers!

Marcelo.

On 10/25/06, Marco Madarco <osflash at madarco.it> wrote:
>
> Yes, *action*_count is a feature of AMFPhp, wrapping the array in a
> Arrayf make it work like a (pageable) recordset.
> In the client you do a normal service request,
> but in your handleResult you should listen to the modelChanged event:
>
> function handleResult(re:ResultEvent) {
>   var rs:RecordSet = RecordSet(re.result);
>   rs.addEventListener('modelChanged', this);
>   ...
> }
> function modelChanged(info:Object) {
>   //info={event:"addRows", firstRos:xxx, lastRow:yyy}
>   ...
> }
> when you do a rs.getItemAt(x) and x isn't already fetched from the
> server, a page request is made and then a modelChanged event is triggered.
> You can find more info here:
> http://amfphp.sourceforge.net/docs/pageablerecordsets.html
>
> bye
>
> Marcelo de Moraes Serpa ha scritto:
> > Hi Marco,
> >
> > This *action*_count is a built-in feature of amfphp, right? What code
> > should
> > be on the client side for this to work? (AFAIK it only works when you
> are
> > using the recordset class).
> >
> > Also, why do you wrap the array returned by Cake into the Arrayf object?
> >
> > Cheers,
> >
> > Marcelo.
>
> --
> Marco Madarco
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061025/a054e5bb/attachment.htm


More information about the osflash mailing list