Conquer the connection of CakePHP series 1 to the MySQL database. Read this www.jb51.netarticle16244.htm and then describe this framework step by step. First download the framework: Official Homepage: cakephp.org: Read this http://www.jb51.net/article/16244.htm first
Next, we will describe this framework step by step.
First, download the framework:
Official Homepage: http://cakephp.org/
: Http://cakeforge.org/frs? Group_id = 23 & release_id = 428.
Official documents: http://book.cakephp.org/view/305/The-Manual
Third-party Introduction: http://www.1x3x.net/cakephp/
Select stable version
1.1.4247692
Download the cake_1.1.4107692.zip file and decompress it, as shown in. create a project.
Run: http: // localhost/cakephp_demo/
Modify the name of the database. php. default file to database. php, and modify the configuration information, for example:
- ClassDATABASE_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'=>'');
- }
Run the appeal URL again:
The database connection is successful.
The following describes the framework step by step. First Download framework: Official Home Page: http://cakephp.org /:...