[flexcoders] Working with PHP webservice and Flash Builder DataServices

Friday, December 16, 2011

 

Hello
I has been working for some time with php based webservices using ZendFramework, not using a data model but connecting to a php class method that return an Object not a defined class because I use complex models and I was never able to create them on Flex or find any info about it on the net, but that way there is always a delay of around 2s no matter how many rows or data am retrieving.

Example let say that the table looks like this
Table "user"
-id_user
-name
-account
-password
-id_rights

When generating the PHP class with FB4 it create the models an all to that format of atributes but what i want to be returned
is an object with this format:

-id_user
-name
-account
-password
-rights (Object of Rights class)

The problem :
If I try to modify the return of the generated php method, the service generated class and the model I gives me an error or it doesn't load the data. Some advice , tutorial or tip ??? thanks.

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

0 comments:

Post a Comment