The content of this article is about thinking PHP for beginners. It has certain reference value. Now I share it with everyone. Friends in need can refer to it
ThinkPHP uses a single entry mode for project deployment and access. No matter what function is completed, an application has a unified (but not necessarily is the only entrance). By default, the framework already comes with an application entry file (and the default directory structure). If you change the project directory (for example, change Application to Apps), you only need to change the APP_PATH APP_PATH constant definition in the entry file: define ('APP_PATH','./Apps/'); require './ThinkPHP/ThinkPHP.php';Adjust the location or directory name of the framework core directory. You only need to modify it like this: define('APP_PATH','./Application /'); require './Think/ThinkPHP.php'; You can also define a THINK_PATH THINK_PATH constant separately.
When you access the application entry file for the first time, the default welcome page as shown in the figure will be displayed, and a default application module Home will be automatically generated. If you want to access your own application module, add the following definition define('BIND_MODULE','Admin') in the entry file; it will access your own admin module. Since the Admin module does not exist, it will automatically be accessed for the first time. generate.
#
The above is the detailed content of Beginner think PHP. For more information, please follow other related articles on the PHP Chinese website!