Cake Architecture Primer

Source: Internet
Author: User
Tags php code php development environment root directory zend framework

(i) Introduction

This article mainly describes the cake architecture, and how to install the configuration using this architecture to get started to develop.

(b) requirements (1) to understand the basic PHP code. (2) A apache+mysql+php development environment has been configured.

(iii) Body (1) Cake Introduction

Cake is an MVC framework based on PHP, free and open source. It is simpler than some other PHP architectures, such as the Zend Framework, to enable faster and more flexible creation of network applications. So it's easy for beginners to get started.

Cake has the following characteristics:

Have a friendly and active community

A flexible MIT License

Compatible PHP4 and PHP5

Database interaction using CRUD

Application Scaffolding

Code generation automatically (code generator)

MVC Architecture

Clear, clean, highly customizable URLs and routing request distributors

Built-in validation verification

Quick and flexible template mechanism (PHP syntax, with helpers)

Ajax, JavaScript, HTML forms and more View assistant tools

Messages, cookies, security, sessions (session), and components that request processing

A flexible ACL access control mechanism

Data cleanup

Flexible View Caching caching

Localization

can work in any subdirectory, with little or no need to change any Apache-related configuration

(2) Configuration development

Download cake from http://cakephp.org/, the current latest version is: 1.2.3.8166

After downloading to the root directory of the server, such as:/wwwroot/first_app, and can change the root directory directly pointing to First_app\app\webroot, such as: DocumentRoot "D:\PHP\wwwRoot\First_ App\app\webroot "

Restart the Apache service. Browse: http://localhost/

If you see the same page as this one, your Apache service is configured correctly. You can also see 4 tips on the page, and yellow is what you have to configure.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.