I know its got the class mapping facilities but i've not been able to figure out how to get it to work with cake models yet, so it was quicker for me to code one in actionscript than figure out how to get it working in php :)
Hopefully what i've done will be redundant soon enough but its useful for a project im doing at the moment so until that time i'll work on it. The problem i faced with the php side was that cake doesnt create objects of a specific class, so when you execute any kind of query on a model you dont get instances of that model class, just associative arrays. So theres no type information for the AMFPHP class mapper to use. (So models in cake arent exactly models in the VO sense, theyre actually db query engines) I asked on IRC why cake doesnt create classes and they said it was for performance reasons and its unlikely to change, so the only way i could see of getting that type information in before the AMF gateway was by digging deep into the php code and scanning what was sent over the wire, matching model names and injecting the 'explicitType' parameter ready for amfphp to serialize. But, i dont know the PHP code well so maybe there is a really simple way that i've missed. anyway, the outcome of all of that is why i've done what i've done. I also think that its also useful to keep some of the processing load off the server and move it to the clients to keep it spread around. :) Martin Marcelo de Moraes Serpa wrote: > Hey Martin, AMFPHP has a VO engine build-in... I wonder if it could be used > in conjuction with cake to make thing simpler? > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
