Creating Zend Framework Projects

Zend Framework Projects are PHP projects which contain Zend Framework's libraries in their Include Path and which are organized into Framework's Controller-Model- View format (if selected). Zend Framework 1.8 projects are based on the Zend Tool, ensuring your projects comply with the latest Zend Framework standards and allow for Rapid Application Development .

Visit http://framework.zend.com for more on Zend Framework or http://framework.zend.com/manual/en for the Zend Framework Reference manual.

This procedure demonstrates how to create a new Zend Framework Project.

Important Note:

You must have Zend Framework version 1.8 installed on your machine to be able to create Zend Framework projects.
Zend Framework comes bundled with Zend Server or can be downloaded from the Zend Framework site at http://framework.zend.com/download/current .

 

 

Instructions on how to complete a procedure

To create a new Zend Framework Project:

  1. Go to File | New | Zend Framework Project -or- right-click in PHP Explorer view and select File | New | Zend Framework Project.
    The New Zend Framework Project dialog will open.

new_zf_project.jpg

New Zend Framework Project

  1. Enter the project name.

  2. In the Framework Version drop-down list, select the Zend Framework version to use for your project. Zend Studio supports Zend Framework version 1.9 . This will include the required Zend Framework library in your project, and give you access to the relevant content assist options.

  1. Select the Project Layout from the following options:

  • Zend Framework empty project - Creates a regular PHP project structure

  • Zend Framework default project structure - Creates a project organized according to Zend Tool conventions.

  • Full featured Zend Framework and Dojo project - Select this option if you are going to be developing using the JavaScript Dojo framework in this project. This will create a link to the external Dojo toolkit library. See Setting Up and Using Dojo Integration for more information.

  1. Click Finish.
    Your Zend Framework Project will be created.
    It will be represented by a Zend Framework icon framework_icon.png in PHP Explorer view.

  2. Click Yes when prompted to open the Zend Framework perspective.
    Your Zend Framework project will be displayed in the MVC Outline view.

Note:

To open the MVC Outline view manually, go to Window | Show View | PHP Tools | MVC Outline.

framework_mvc_view.png

MVC view

The MVC view provides an outline of all controller, model and view classes, files, variables and related functions.

You can now start to add your own Model, View and Controller files. See Creating Zend Framework Elements for more information.

 

 

link_icon.png

Related Links:
Zend Framework Integration

Developing with Zend Framework

Creating Zend Framework Elements

Searching the Zend Framework Site