Thursday, March 28, 2013

Getting Started with Zend Framework 2

The objective of blog post is to give idea to build our application or installed ZEND framework 2.0

Go to https://github.com/zendframework/ZendSkeletonApplication and click the “Zip” button.

This will download a file. Unzip this file into the directory where you like to keep and rename according your project name. (For example htdocs or www)

To install Zend Framework 2 into our application simply type:

php composer.phar self-update

php composer.phar install

After executing successfully last command

you will get following output “Generating autoload files”

If error occurs some thing like this “'php' is not recognized as an internal or external command “

TO resolve this error you have to set the PHP path in window environment variable.

From the desktop, right-click My Computer and click Properties. In the System Properties window, click on the Advanced tab. In the Advanced section, click the Environment Variables button. •

Finally, in the Environment Variables window highlight the Path variable in the Systems Variable section and click the Edit button.

Add or modify the path lines with the paths you wish the computer to access.




Set some like this “C:\your\xamp\path\php”

http://localhost/projectname/public/

Now you have a working skeleton application on which you can start adding the specifics for our application.