Creating a New Hybrid Mobile Project

This procedure describes how to create a new hybrid mobile application in Zend Studio.

 

 

Instructions on how to complete a procedure

To create a new hybrid mobile project in Zend Studio:

  1. In Zend Studio, go to File | New | Hybrid Mobile (Cordova) Application Project.
    -OR-
    In the PHP Explorer View, right-click and select New | Project | Hybrid Mobile (Cordova) Application Project.
    The Hybrid Mobile (Cordova) Application Project wizard is displayed.

  1. Name your new project.

  2. To configure the project location, deselect the Use default location check-box, and enter your preferred location.
  3. Configure the name and ID for your mobile application:

    Note:

    These fields are filled automatically as you name your project. Only edit if information differs from the project name.

    • Name - Enter a name for your mobile application
    • ID - Enter a unique identifier for your mobile application
  4. Click Next.
    The Select Hybrid Mobile Engine dialog is displayed.

  1. Select an engine from the list, and click Next. If you do not have an engine installed, download one. For more information, see Configuring Hybrid Mobile Development.
    The Install Cordova Plug-in dialog is displayed.

    Note:

    This step is optional. If you do not wish to configure Cordova plug-ins for the new mobile project, skip to step 9.

  1. Configure Cordova plug-ins to install with your new project:
    1. Select a plug-in from the available plug-in list.
    2. To search for a specific plug-in, use the Find field at the top of the dialog.
    3. To install a plugin from a Git repository, select the Git tab and enter the repository URL.
    4. To install a plug-in from a local directory, select the Directory tab, and browse to the directory.
  2. Click Next.
    The Confirm Plug-ins dialog is displayed.

    Note:

    This step is optional. If you do not wish to configure Cordova plug-ins for the new mobile project, skip to the next step.

 

  1. Click Finish.
    Your new hybrid mobile project is created, and displayed in the PHP Explorer. By default, your project's configuration file is opened in your PHP editor.

Tip:

The 'config.xml' file is the mobile project's configuration file, and can be used to create native applications and change general info on the project.