It's even simpler now, just right click on the PHP class and select "Connect to Data/Service". The wizard will be ready with all parameters.
Wow thanks for quick response,....
"right click on the PHP class" ???
Where in the order of operations? On what icon?
Color me dumb on this one
Sure, but I am going to use this article in my answer which describes the full workflow http://www.adobe.com/devnet/flash-builder/articles/introducing-flashbuilder45-php.html
after you create a project and write your service as a PHP class, you should right click in the Explorer on the PHP class and select "Create PHP Service for Flex".
This is the relevant part in the article:
1. Right-click the file with the class that you want to introspect and select Create PHP Service for Flex (see Figure 3).
Figure 3. Selecting Create PHP Service For Flex to introspect a PHP class.
I'm going to look into that article... going out for a bit in few, but you are indicating, if I read this correctly, ("after you create a project and write your service as a PHP class,") - that the class MUST BE WRITTEN first. If I have an empty class that workflow generates something like this...
function __construct ()
function __destruct ()
and seems to mimic only the process I have used before in 4.5 for PHP. Previously and in FB 4.5 (NOT FOR PHP) you are/were prompted for MYSQL host, connections etc and then the entire 'arithmetic' structure was created so you could fly. Now, it STILL seems as if all this has to be written?
This threw me off too. But the functionality you describe is still there.
- in the application menu, go to 'Data' - 'Connect to PHP (Runtime)'
- in the popup dialog, there will be a link for 'click here to generate a sample'.
Note: when you go to 'Data' in the applicaiton menu, there are two options for PHP - 'Connect to PHP' or 'Connect to PHP (Runtime)', you want the former. If creating a new service in the 'Data/Services' tab, it only gives you the option for 'Connect to PHP', i.e., configuring a Zend Studio PHP Service.
Thanks jay-ruh-mee! This help me a lot too. Can you explain why this more? seems to be more easy to auto generate the php class in runtime instead of PHP with Zend Studio. Thanks.
Man, this was driving me crazy! Thanks.