(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.