Open index.php file (index.php file is the default foreground entry file)
Detecting PHP environments
if (Version_compare (php_version, ' 5.3.0 ', ' < ') die (' Require PHP > 5.3.0! ');
Open Debug mode suggest the development phase to open the deployment phase comment or set to False
Define (' App_debug ', True);
Defining the App Catalog
Define (' App_path ', './application/');
Introducing the thinkphp entry file
Require './thinkphp/thinkphp.php ';
There's no code behind the pro ^_^, it's so simple.
Add the portal definition file you need (below is the author's own preference)
Defining the Run-time catalog
Define (' Runtime_path ', './runtime/');
Define the path to a static page
Define (' Html_path ', './html/');
Defining the App Catalog
Define (' App_path ', './app/');
Define the app catalog to change the theme of using your own items (author changes to app)
Defining default Modules
Define (' Bind_module ', ' Home ');
index.php is defined as home by default, and can be changed arbitrarily
Run project, browser input http://localhost/text/, project run successfully, thinkphp default page "Welcome to Thinkphp! "
View project directory, F5 refresh, app for foreground app directory, home for front module name, common as Project Profile directory
Copy the index.php file, rename it to admin.php, (admin.php is the project background default entry file) index.php and admin.php in the same level directory,
Open admin.php File modification
Defining default Modules
Define (' Bind_module ', ' Home ');
For
Defining default Modules
Define (' Bind_module ', ' Admin ');
Run project, browser input http://localhost/text/admin.php, project run successfully, thinkphp default page "Welcome to thinkphp! ”
View project directory, F5 refresh, app for foreground, background app directory, home for front module name, common for foreground, background project Public Profile directory, admin for background module
Here thinkphp Project foreground background entrance file running successfully created, the following in front of the background to implement the required functions
"2" Framework directory file parsing
Common public functions that store the current project
Conf the configuration function that holds the current project
Lang stores the project language pack for the current project
Lib holds the controller and model for the current project
Runtime to store the current project's run-time files
TPL holds the template file for the current project
MC LIb
V TPL
Additional
Upload File Upload
Page pagination of
Image
Plugins plugin online compiler
The Core reads the data the foreground also uses in the backstage also uses the different operation business layer operation
Configs configuration file