Home > Backend Development > PHP Tutorial > Beginner think PHP

Beginner think PHP

不言
Release: 2023-03-24 06:48:01
Original
2564 people have browsed it

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 is a free open source, fast and simple object-oriented lightweight PHP development framework, follows the Apache2 open source agreement and is Born to simplify enterprise-level application development and agile WEB application development!

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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template