Step 1: create indexes in the same file under the newly created directory and the ThinkPhP directory. php and admin. php. step 2: In index. write the following code in php: & lt ;? Php...
Step 1:Create index. php and admin. php.
Step 2:Write the following code in index. php:
-
- // If you place index. php outside the project directory, add the following three lines
- // Define ('app _ name', 'vvdai ');
- // Define ('app _ path', 'vvdai /');
- // Require 'vvdai/ThinkPHP. php ';
-
- Define ('app _ debug', true); // enable debugging mode
- Define ('app _ name', 'home ');
- Define ('app _ path', './Home /');
- Require 'thinkphp/ThinkPHP. php ';
- ?>
Write in admin. php:
-
- // If you place index. php outside the project directory, add the following three lines
- // Define ('app _ name', 'vvdai ');
- // Define ('app _ path', 'vvdai /');
- // Require 'vvdai/ThinkPHP. php ';
- Define ('app _ debug', true); // enable debugging mode
- Define ('app _ name', Admin );
- Define ('app _ path', './Admin /');
- Require 'thinkphp/ThinkPHP. php ';
- ?>