Now I am working in a project which I supposed to do in zend framework, here I am installed this in windows platform , so this article is only for windows users who need to install zend in Windows XP platform. I faced many problem while installing and using this frame work , So I am giving a step by step instructions to install create projects in this framework.
Step 1 : From here you will get the latest framework edition :
http://framework.zend.com/releases/ZendFramework-1.11.10/ZendFramework-1.11.10.zip
by unzipping copy the files to the C:\\ directory with folder name as zend.
One important thing is, if you are using the php as xampp or wampp you can copy all the files inside the folder ZendFramework-1.11.10\library\Zend to the folder C:\xampp\php\PEAR\Zend to get the latest libraries.
Step 2 : Now using the zend tool to create zend projects and other zend components. Initially you need to set two environment variable one is for php.exe file and other is for zf.bat for using zf commands.
Refer these article if you are unaware of setting the zend framework tool.
http://www.lametadesign.com/blog/admin/how-install-zend-framework-using-wamp-20-windows-xp
Step3 :After installing and setting the directory we can proceed to some helpful commands by zend command tool. Here you can execute the instruction by simply taking the command promp from start>> run.
Initially we can create project by typing
zf create project project-name
This command will create a project folder by the name you are provided and it will generate some folders and files like this structure
project name
application/
configs/
application.ini
controllers/
helpers/
forms/
layouts/
models/views/
filters/
helpers/
scripts/
Bootstrap.php
indexes/
library/indexes/
public/
css/
images/
js/
.htaccess
index.php
Here you will get more useful zend commands.
http://zendframework.com/manual/en/zend.tool.usage.cli.html
One thing is if you NetBeans or Zend studio there is options for executing and generating commands and some codes inside the zend. Now I am using net beans for my project and there is options to generate getters and setters in the model classes.
Here is the link for NetBeans
http://netbeans.dzone.com/news/generate-constructor-getters-a
For newbies it is very useful to create account in
http://forums.zend.com/
and post comments if you are in struck with any complex codes.
thanks for sharing a such a nice information
ReplyDeleteOffshore Software Development Company
Hire Zend Developer
Very useful article , thanks for the sharing it.zend development company
ReplyDelete