zend framwork configurations
DESCRIPTION
TRANSCRIPT
![Page 1: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/1.jpg)
By : Rangana Dissanayake
Web Developmentwith
![Page 2: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/2.jpg)
Introduction
• Zend Framework is an open source framework for developing web applications and services with PHP 5. Zend Framework is implemented using 100% object-oriented code. The component structure of Zend Framework is somewhat unique; each component is designed with few dependencies on other components. This loosely coupled architecture allows developers to use components individually. We often call this a "use-at-will" design
![Page 3: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/3.jpg)
Requirements for create a Zend project
• Aparche HTTP web server(2.2.3 or later) + PHP (5.2 or later ) + DB server (MySQL/Postgre SQL)
• the best choice is install WAMP/XAMPP on your computer its include all the above requirements
• Zend Framwork library • Zend supported IDE (NetBeans IDE 7.1.2 or
later, Zend studio, Eclips with PDT plug)
![Page 4: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/4.jpg)
Installation • Download the latest stable release(you may
need to unzip it).– Link :
http://www.zend.com/en/community/downloads
![Page 5: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/5.jpg)
• Setup the environment variable for Zend frame work and PHP
![Page 6: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/6.jpg)
• Setup the include path for in php.ini for zend framework
![Page 7: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/7.jpg)
• Testing the Zend (just type zf and enter on you terminal)
![Page 8: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/8.jpg)
Create your first project
Zend command • zf create project demo
It will generate the zend project folder structure as follows
Make sure to create your project in the web root directory
Ex : • C:\wamp\www
![Page 9: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/9.jpg)
• Basic zend commands
![Page 10: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/10.jpg)
Basic commands FYI
![Page 11: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/11.jpg)
• How to test it – Make sure your server is up and running – Go to the following URL
Yes this is the default index page of the Zend framework , you are ready for a Zend project
![Page 12: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/12.jpg)
• Zend project can be created without any IDE ,but if you can setup your project with an IDE it will be more useful.
![Page 13: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/13.jpg)
• Set up the development environment with Netbeans IDE
• Step 01, Configuring for PHP
![Page 14: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/14.jpg)
• Configuration for Zend framework
![Page 15: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/15.jpg)
Create your first Zend project with Netbeans
![Page 16: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/16.jpg)
Set your server root as the source folder (www/httpdoc)
![Page 17: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/17.jpg)
Set up Your Project URL
![Page 18: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/18.jpg)
Select the PHP framework as Zend then finish
![Page 19: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/19.jpg)
Once you created a Zend project you can see the following folder structure as default
![Page 20: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/20.jpg)
Once you run the project can see the main folder structure on your default browser
![Page 21: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/21.jpg)
• Debugging a PHP project with Netbeans xdebuger
![Page 22: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/22.jpg)
• How to debug a PHP project with Netbeans• Step 01 - make sure to set following parameters
![Page 23: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/23.jpg)
• Do following changes for your php.ini file
(01) Remove comments on output_buffering=off line
(01) Add these lines on [xdebug] php.ini
Make sure to match the correct xdebug version with your php version (http://xdebug.org/download/ for downloard xdebug)
![Page 24: Zend Framwork configurations](https://reader034.vdocuments.us/reader034/viewer/2022051400/553897ff550346653f8b480f/html5/thumbnails/24.jpg)
A web site development process
• Design • Development • Hosting ( need a domain for redirect to the host)– Shared Hosting (cpanel)– Dedicated hosting – VPS hosting– Cloud hosting