Setting Up Zend Framework

How to setting up your Zend Framework environment? This is an old question since 1st version released at 1st July, 2007. Here I will show you some of my experience as much as possible.

 

1.  php set up

 

Php download : http://www.php.net/downloads.php

 

Ver.5.29 is recommended as the steady version before php6.

Requirements here : http://framework.zend.com/manual/en/requirements.html

 

Installing php : http://www.php.net/manual/en/install.php

 

And I won’t teach you how to setting up your apache and mysql(mssql).

Apache docs : http://httpd.apache.org/docs

Mysql docs : http://dev.mysql.com/doc/

 

Ok, you are lazy, then the following softwares must fit you :

xampp : http://www.apachefriends.org/en/xampp.html

Zend Core : http://www.zend.com/en/downloads/

wamp : http://www.wampserver.com/ (only for windows)

 

PS : Please enable your rewrite_module of apache as it’s in use for most scenes. And also expires_module because of performance optimize in furture.

 

2.  Zend Framework download and installation

 

Download latest : http://framework.zend.com/download/latest

 

Installation guide from official : http://framework.zend.com/manual/en/introduction.installation.html

 

The trunk will be really the best for you in getting fresh if you are familiar with SVN :

http://framework.zend.com/svn/framework/standard/trunk

 

Un-zip your Zend Framework package and put the Zend folder within your library as something like :

./library/Zend/

 

Then we should make it into your include_path with several ways :

 

(1) In php.ini :

For unix : include_path = ".:/www/library"

For windows : include_path = ".;c:\www\library"

 

(2) Within .htaccess :

For example : php_value include_path ".:path"  (not for linux)

 

(3) Within your application which is best flexible and optimizing :

For example : set_include_path(‘/www/myproject/library’ . PATH_SEPARATOR . ‘other/path/’ . PATH_SEPARATOR);

 

PS : We usually put the path of Zend Framework at the first place in order to reduse the scanning time.

 

3.  Start with Zend Framework

 

Test in your index.php with :

[codesyntax lang=”php”]

require_once 'Zend/Version.php';
echo Zend_Version::VERSION;

[/codesyntax]

 

Ok, you see it? Then going on to enjoy the powerful Zend Framework library.

 

The nabble community is famous and is the right place to answer your questions :

http://www.nabble.com/Zend-Framework-Community-f16154.html

 

For sure the quickstart from official is basic and helpful : 

http://framework.zend.com/docs/quickstart

 

And the next is <<getting started with the zend framework>> by Rob Allan :

http://akrabat.com/zend-framework-tutorial/

 

What about the books? Here are some of them.

« Zend Framework in action » – http://www.zendframeworkinaction.com

« Guide to Programming with Zend Framework » – http://www.phparch.com/c/books/id/9780973862157

« ZF Certification Study Guide »http://www.zend.com/community/downloads

« ZF Programmer’s Reference Guide »http://www.zend.com/community/downloads

 

The first two are good for newers and the third one is for someone who want to pass the Certification of Zend Framework which is really professional. There is nothing to say about the Reference Guide as you can’t live without it everyday.

 

Posted in Zend Framework | Tagged | Leave a comment