Zend Framework Quick Start in xampp and Windows
Now i am writing what i have done for my project learning from the zend documentation. It(Zend) follows the MVC design pattern (with some extension, like form).
Create Project
1. Start>Run (cmd)
zf create project E:\Faruque\Projects\gyneca\Source\trunk\test_php\test_zend test_zend
Create Layout
go to the application directory(in command pormpt.) where .zfproject.xml remains
execute this command:
zf enable layout
In application/configs/application.ini file append
; Add to [production] section:
resources.view[] =
Add a function to Bootstrap
Enabling layout for zend framework
It gives error when we execute the command
zf enable layout
Solution:
1. Go to the app path
Installing zend framework in windows xampp
1. Download zend framework. keep it any where in your hard disk.
After downloading the ZF, we can add the library in two ways
i. In php.ini file add include_path to library.
include_path = “.;D:\xampp\php\PEAR;E:\Faruque\Projects\gyneca\Source\trunk\test_php\Zend\library”
or
ii. Keep the Zend folder of library folder to
PEAR folder and make sure the following code is uncommented in php.ini file
include_path = “.;D:\xampp\php\PEAR”
2. Copy the zf.bat and zf.php from bin to D:\xampp\php\
3. Set environment variable (Right click on mycomputer>properties>advance>Environment variables)
4. use command (Start>Run:cmd)
5. type:
zf create project path/to/application ( Ex: E:\Faruque\Projects\gyneca\Source\trunk\test_php\test_zend) project name (Ex: test_zend)
6. make virtual host
- Open the file : D:\xampp\apache\conf\extra\httpd-vhost.conf
- Uncomment NameVirtualHost *:80
type
Preliminaries for Zend Framework installation
Changing directory in cmd prompt(windows)
C:\Documents and Settings\Faruque>cd /d D:
or
C:\Documents and Settings\Faruque>D:
Learning Zend FrameWork(Introduction)
From today i have started learning Zend Framework.
First step is downloading the framework: http://framework.zend.com/.
2nd step is unzip the framework.
complete. (As i have done only this portion)
Paypal Integration(4th day)
What do u think? Is it completed? No. We have made the form to submit.
Now,
1. Data will go to paypal
2. paypal shows the payment form.
3. After transaction it(paypal) will send a notification to my site(The location i have given at the form.).
<input type=”hidden” name=”notify_url” value=”http://www.abcd.com/ipn/ipn.php”>
4. Now I have to send the notification data to paypal for verification.(I missed this step to my project and i fell in gr8 trouble)
5. After verification, paypal sends me another notification.
6. Then i start processing the data(inserting in db , sending mail etc).
Its hard.na?
Paypal provides this handler for different language. So …. no problem.
The code of paypal ipn handler:
Paypal Integration(3rd day)
Paypal Integration(2nd day)
The minimalistic order form:
Paypal Integration(1st day)
Yap, atlast i have integrated my project to paypal. Its easy but need some guidence.
For my project scenario is -
- Client will login to my page
- They put the quantity of products
- And click buy now button
- 1 notification(IPN) will come to me(Site Admin).
- I will store the info(user_name, amount) to DB.
Thats it.
I have made a order form given in next post. Now i m busy. :p:p:p:p:p
Paypal Integration(Introduction)
Again i have started learning paypal.

admin





