First read this http://www.phpchina.com/html/77/n-33777.html
and then I will explain this framework step by step.
First, download
the official homepage of the framework: 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/Here
, select the stable version 1.1.20.7692
, download the cake_1.1.20.7692.zip file and unzip it, and create the project as shown in the figure below.
Run directly: http://localhost/cakephp_demo/
Modify the file name of the file database.php.default to database.php, and modify the configuration information in it, 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'=>'');
}
Rerun the appeal URL:
It can be seen that the database connection is successful at this time.