Home > Backend Development > PHP Tutorial > Related summary of ThinkPHP

Related summary of ThinkPHP

jacklove
Release: 2023-04-01 10:06:01
Original
1640 people have browsed it

What is ThinkPHP?

ThinkPHP是一个免费的、开源的、快速的、基于MVC模式的、面向对象的轻量级开发框架。
Copy after login

Getting ThinkPHP

http://www.thinkphp.cn/
Copy after login
Copy after login

ThinkPHP project building tutorial

http://www.icoolxue.com/play/2284
Copy after login
Copy after login

How to:

1.安装wamp,在www文件夹中创建ThinkPHP文件夹
2.下载ThinkPHP核心文件包
3.将核心文件包中的ThinkPHP文件夹复制到wamp的www文件夹的ThinkPHP文件夹中
4.在www文件夹的ThinkPHP文件夹中创建入口文件index.php和admin.php
5.访问www文件夹的ThinkPHP文件夹,自动创建Home文件夹和Admin文件夹
6.在www文件夹的ThinkPHP文件夹中创建Public文件夹,存放Home和Admin的共同类文件
Copy after login

Entry file:
1.Index.php

<?php    //1.确定应用名称 Home
    define(&#39;APP_NAME&#39;,&#39;Home&#39;);    //2.确定应用路径
    define(&#39;APP_PATH&#39;,&#39;./Home/&#39;);    //3.引用核心文件
    require &#39;./ThinkPHP/ThinkPHP.php&#39;;?>
Copy after login
Copy after login

2.admin.php

<?php    //1.确定应用名称 Admin
    define(&#39;APP_NAME&#39;,&#39;Admin&#39;);    //2.确定应用路径
    define(&#39;APP_PATH&#39;,&#39;./Admin/&#39;);    //3.引用核心文件
    require &#39;./ThinkPHP/ThinkPHP.php&#39;;?>
Copy after login

What is ThinkPHP?

ThinkPHP是一个免费的、开源的、快速的、基于MVC模式的、面向对象的轻量级开发框架。
Copy after login

Getting ThinkPHP

http://www.thinkphp.cn/
Copy after login
Copy after login

ThinkPHP project building tutorial

http://www.icoolxue.com/play/2284
Copy after login
Copy after login

Method:

1.安装wamp,在www文件夹中创建ThinkPHP文件夹
2.下载ThinkPHP核心文件包
3.将核心文件包中的ThinkPHP文件夹复制到wamp的www文件夹的ThinkPHP文件夹中
4.在www文件夹的ThinkPHP文件夹中创建入口文件index.php和admin.php
5.访问www文件夹的ThinkPHP文件夹,自动创建Home文件夹和Admin文件夹
6.在www文件夹的ThinkPHP文件夹中创建Public文件夹,存放Home和Admin的共同类文件
Copy after login

Entry file:
1.Index.php

<?php    //1.确定应用名称 Home
    define(&#39;APP_NAME&#39;,&#39;Home&#39;);    //2.确定应用路径
    define(&#39;APP_PATH&#39;,&#39;./Home/&#39;);    //3.引用核心文件
    require &#39;./ThinkPHP/ThinkPHP.php&#39;;?>
Copy after login
Copy after login

2. admin.php

<?php    //1.确定应用名称 Admin
    define(&#39;APP_NAME&#39;,&#39;Admin&#39;);    //2.确定应用路径
    define(&#39;APP_PATH&#39;,&#39;./Admin/&#39;);    //3.引用核心文件
    require &#39;./ThinkPHP/ThinkPHP.php&#39;;?>
Copy after login

This article explains the relevant summary of ThinkPHP. For more related content, please pay attention to the php Chinese website.

Related recommendations:

Summary of relevant content on the return value of database operations in ThinkPHP

About thinkphp base class Related content

ThinkPHP user login registration related code cases

The above is the detailed content of Related summary of ThinkPHP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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