Creating a New Flex Mobile/PHP Project
Creating a Flex Mobile/PHP project creates a pair of projects; one Flex
mobile project, and one PHP project. The Flex mobile project automatically
has PHP Support enabled, creating
modular code, which allows the two projects to be independent and yet
still be aware of one another so that they can create one joint application.
This gives you the advantage of being able to distinguish between Flex
developers (client side), and developers/back end developers (PHP server
To create a new Flex Mobile and
- Go to File | New | Flex
Mobileand PHP Project.
-Or- In the Package
Explorer view, right-click and select New
| Flex Mobile and PHP Project..Flex
The New Flex Mobile and PHP Project wizard opens.
- The Create PHP Project dialog contains the details of your
PHP project. In the dialog, enter the following information:
Project name - The name for your PHP project.
Contents - Select whether to:
Create new project in workspace - Creates
a new PHP project in the workspace directory.
Create project at existing location
(from existing source) - Creates a PHP project pointing
to files situated outside of the workspace. Click Browse to select the
required source content.
Create project on a local server - Creates
the project on a local server. This option will only be
available if a local Zend Server has been configured in
the PHP Servers Preferences.
Framework version - Select the Zend
Framework version you would like to work with from the
Server location - Enter the following
Web Root - The document root of your
The web root is the directory where your web pages exist
in your server, for example “C:\Program Files\Zend\Apache2\htdocs”.
Root URL - The URL of your server, for
Click Validate Configuration.
If Flash Builder 4.5 for PHP
cannot validate the configuration, review your web root and
root URL and make sure they both exist on the machine.
If the configuration has been validated click Next.
The Create Flex Mobile Project dialog opens.
Enter the following information:
- Project Name - The name for your Flex Mobile
Project location - Decide whether to use
the default location, or select your own by clicking Browse.
Output folder - Select an output folder
for your compiled Flex Mobile/PHP application, where compiled
output files are stored. By default they are stored in the “bin-debug”
folder of your Flex project.
Flex SDK version - Select whether to:
Your Flex Mobile/PHP application is created.
a Flex/PHP application creates a PHP project and a Flex project
with PHP Support enabled
in your workspace.
You can now use a PHP class you create and perform PHP
Introspection to begin binding the data.