Create Project Using Zend Framework In PHP

Introduction

This article explains how to create a project using the Zend framework in PHP. The Zend framework is an open source PHP framework When you want to use this framework you are required to use a Zend setup or package and now you will download this setup from zendframework.com. Then extract this package and put it into your working directory www folder.

Your download link for Zend setup:

download link

Your downloaded folder structure look like this:

setup artitecture

Setup it and put it in your working directory.

put on www directory

And now start your Wamp server and open your "http.conf" file and search for the "mod_rewrite.so" setting and enable it.

http conf setting

Before:

#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so

And after:

#LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so

After this, copy your bin directory path and setup path into an environmental variable.

copy bin directory path

And open environmental variable:

environmental variable1

environmental variable3

And edit the path; terminate the old path with a semicolon and paste in your copy of the bin directory path.

environmental variable4

Now, restart your Wamp server and open your cmd command prompt.

And type "zf" and press Enter as in the following:

use command zf

And the next step is to type the command "cd\" and create the project as in the following:

type command cd slash

create project

And finally your project has been created in your www directory named "myzend".

your project

index page


Similar Articles