Zend Framework is an open source, object oriented web application framework for PHP 5. Zend Framework is often called a ‘component library’, because it has many loosely coupled components that you can use more or less independently. But Zend Framework also provides an advanced Model-View-Controller (MVC) implementation that can be used to establish a basic structure for your Zend Framework applications.
Features: Zend Framework features include:
Install LAMP: Zend Framework can be tested by creating test project; it should be placed under the document root of your web server. Web server might be Apache, Nginx and Lighttpd; for easy understanding i used Apache as web server. Here is the Step by Step guide to install LAMP server on CentOS 6 / RHEL 6 . Open Terminal ( Application —-> System Tools —-> Terminal). Switch to root user.
Install Repository: Zend Framework available on the epel repository, we need to install repository by issuing the following command.
Install Zend Framework:
Confirm the installed version.
Testing Zend project: In Apache /var/www/html is the default document root, so i am going to create test project on /var/www/html, go to the default document root of web server.
Create the test project called geeksite.
You should get the above message after hitting Enter; if you get any error message included in above message, you required to install PHPUnit. Install PHPUnit by issuing the following command.
Optional: Now we need to have the Zend Library files in the library directory under the created project (By default it’s empty). go to the library directory.
SymLink is the better option than copying the library files to library directory; because the library files will get update when we are installing the latest Zend Framework.
Tree view of your project directory.
Open up a web browser and navigate to http://localhost/geeksite/public. Screen Shot of Test Project in CentOS 6. That’s all! |
|
来自: Dead n Gone > 《web服务器》