Casting Zend DB results as VO Objects for flex.

It’s really simple really, you just did a zendDB->fetchAll and you want to return the result array as an VO object back to flex. You’d think that this would work. $userObject = (UserVO) $zendDBResult; But it doesn’t. That kind of casting is not built into PHP. Ok open source guys, this is kind of important, but that’s another discussion… So you try this. $zendDBResult = $statement->fetchObject(); $userObject = (object)... [Read More...]

Zend_AMF and Flex

Many people are switching from old school php type architectures to a more object oriented MVC system to pass data back and forth between front ends and back ends. In the world of php and flex, this generally means either Zend_AMF or AMFPHP. If you want to see how this works, I suggest starting here. http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/ It’s a snap to do and you can probably get your first simple test up and running... [Read More...]

After Frankie’s funeral

I keep thinking about how I met my wife swing dancing. About how all my closest friends are swing dancers. About how both my grandmother and my mother were swing dancers. About how I just put up a photo album of my four year old with about 50 other swing dancers. About how I’m quite sure at least 1/5th of the baby boom generation back from WWII met swing dancing. About how I was sitting next to Tony and Auralie from Boston, and they too met... [Read More...]