If there is an easy to follow instruction or tutorial that I can use to learn how to install Zend on my machine that has a WAMP installation?
The video listed
http://www.zendcasts.com/getting-started-with-zend-and-wamp-server/2009/06/
is hard to read what he is writing.
Thank you
Conceptually, the whole thing is:
Create virtual host pointing it to the sample app
Make sure that PHP
include_pathcontains the path to the Zend library.But the specifics can be tricky if you are not accustomed to it. So here is at least a little bit more color.
Create a folder for your app, something like
C:\apps\myapp.Copy a sample ZF app – like this or this – into that space so that the
myappfolder has the typical subfolders likeapplication,library,public,tests, etc.create a virtual host within your Apache. This is a two step process:
3.1 Modify your
hostsfile – on my WinXP machine, it resides in the folderC:\windows\system32\drivers\etcto contain a line like127.0.0.1 myvirtualappI am intentionally choosing a virtual host name
myvirtualappthat is different from the app folder namemyappto demonstrate that they are conceptually different creatures. One is a name that the OS and Apache recognize as an HTTP host; the other is a local filesystem path.3.2 Add an entry into Apache’s vhost file – typically in the Apache folder hierarchy at something like
conf/extra/httpd-vhosts.conf. A minimal entry there will look something like this:<VirtualHost *:80>
DocumentRoot “C:/apps/myapp/public”
ServerName myvirtualapp
</VirtualHost>
Restart Apache.
Make sure that the Zend library is copied into your
c:\apps\myapp\libraryfolder, so that there is a subfolder namedZendwith the rest of the library contained inside.Make sure that the folder
c:\apps\myapp\libraryis on your PHP include path. There are many ways to do this, but typically this is done inc:\apps\myapp\public\index.php. Usually, thatlibraryfolder is referenced inindex.phpasrealpath(APPLICATION_PATH . '/../library').Browse to the url:
http://myvirtualapp/With any luck, you should see the app!