We opened the web directory and found the three folders of common and home and runtime.
Then our first goal is to complete the homepage of the website backstage, then we will directly copy the home folder, and renamed to admin so you can separate the front and back table directory files
The next step is to set the background configuration file on the b1\web\common\conf\config.php configuration file and link to the database, and inside can also open a session without so much trouble, one by one to open, as follows:
<?PHPreturn Array( //' configuration item ' = ' config value '//module (front and back) for access in the system' Module_allow_list ' =Array(' Home ', ' Admin '),//Configure default Access module home' Default_module ' = ' Home ',//default module//prohibit use of PHP code in the template default to False//' tmpl_deny_php ' =>false; Database Configuration' Db_type ' = ' mysql ',//Database Type' db_host ' = ' localhost ',//Server Address' Db_name ' = ' B1 ',//Database name' Db_user ' = ' root ',//User name' Db_pwd ' = ' root ',//Password' Db_port ' = ' 3306 ',//Port' Db_prefix ' = ' jj_ ',//database table Prefixes /*turn on session switch*/' Session_auto_start ' =true,//whether to open session automatically);
Kill lui lei Dog---thinkphp----5 database links