Read this http://www.jb51.net/article/16244.htm first.
The next step is to explain the framework.
The first is the download framework:
Official homepage: http://cakephp.org/
Download Address: http://cakeforge.org/frs/?group_id=23&release_id=428
Official Document: Http://book.cakephp.org/view/305/The-Manual
Third party introduction: http://www.1x3x.net/cakephp/
Choose a stable version here
1.1.20.7692
Download the Cake_1.1.20.7692.zip file and unzip it to create the project as shown.
Direct operation: http://localhost/cakephp_demo/
Modify the file Database.php.default file name to database.php, and modify the configuration information in it, for example:
- class Database_config
- {
- var $default = array(' driver ' = ' MySQL ',
- ' connect ' = ' mysql_connect',
- ' host ' = ' localhost ',
- ' login ' = ' root ',
- ' password ' = ' root ',
- ' database ' = ' test ',
- ' prefix ' = ');
- var $test = array(' driver ' = ' mysql ',
- ' connect ' = ' mysql_connect',
- ' host ' = ' localhost ',
- ' login ' = ' root ',
- ' password ' = ' root ',
- ' database ' = ' test ',
- ' prefix ' = ');
- }
Re-run the appeal URL:
This shows that the database connection is successful.
http://www.bkjia.com/PHPjc/319630.html www.bkjia.com true http://www.bkjia.com/PHPjc/319630.html techarticle Read the http://www.jb51.net/article/16244.htm first. The next step is to explain the framework. The first is the download frame: Official homepage: http://cakephp.org/download Address: ...