中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Install Zend Framework on CentOS 6 / RHEL 6 >> Centos/Redhat

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:

  • All components are fully object-oriented PHP 5 and are E_STRICT compliant
  • Use-at-will architecture with loosely coupled components and minimal interdependencies
  • Extensible MVC implementation supporting layouts and PHP-based templates by default
  • Support for multiple database systems and vendors, including MariaDB, MySQL, Oracle, IBM DB2, Microsoft SQL Server, PostgreSQL, SQLite, and Informix Dynamic Server
  • Email composition and delivery, retrieval via mbox, Maildir, POP3 and IMAP4
  • Flexible caching sub-system with support for many types of backends, such as memory or a file system.

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.

[raj@geeksite~]$ su

Install Repository:

Zend Framework available on the epel repository, we need to install repository by issuing the following command.

[root@geeksite ~]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

Install Zend Framework:

[root@geeksite ~]# yum install php-ZendFramework

Confirm the installed version.

[root@geeksite geeksite]# zf show versionZend Framework Version: 1.11.11

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.

[root@geeksite www]# cd /var/www/html

Create the test project called geeksite.

[root@geeksite html]# zf create project geeksiteCreating project at /var/www/html/geeksiteNote: This command created a web project, for more information setting up your VHOST, please see docs/READMETesting Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.

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.

[root@geeksite www]# yum install php-pear-PHPUnit

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.

[root@geeksite  geeksite]# cd geeksite/library/

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.

[root@geeksite library]# ln -s /usr/share/php/Zend .

Tree view of your project directory.

[root@geeksite geeksite]# tree .|-- application| |-- Bootstrap.php| |-- configs| | `-- application.ini| |-- controllers| | |-- ErrorController.php| | `-- IndexController.php| |-- models| `-- views| |-- helpers| `-- scripts| |-- error| | `-- error.phtml| `-- index| `-- index.phtml|-- docs| `-- README.txt|-- library| `-- Zend -> /usr/share/php/Zend/|-- public| `-- index.php`-- tests|-- application| `-- controllers| `-- IndexControllerTest.php|-- bootstrap.php|-- library`-- phpunit.xml 17 directories, 11 files

Open up a web browser and navigate to http://localhost/geeksite/public. Screen Shot of Test Project in CentOS 6.

That’s all!

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
zend framework開發(fā)環(huán)境搭建-windows
Zend Framework register autoloader namespace | Cuckooo Blog
KM平臺 -啟迪思維 傳遞智慧 : Posts
PHP沉思錄之四:Zend Framework
在CentOS7.0安裝php5.6 – 服務器運維之家
通過smbclient訪問windows共享目錄
更多類似文章 >>
生活服務
熱點新聞
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服