Home  >  Article  >  Backend Development  >  Related summary of ThinkPHP

Related summary of ThinkPHP

jacklove
jackloveOriginal
2018-06-15 14:04:261598browse

What is ThinkPHP?

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

Getting ThinkPHP

http://www.thinkphp.cn/

ThinkPHP project building tutorial

http://www.icoolxue.com/play/2284

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的共同类文件

Entry file:
1.Index.php8685681c283dfd67bcaf5f8370789b27

<?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;;?>

2.admin.php8d6fbc11f8cda8df6349ae3e02515735

<?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;;?>

What is ThinkPHP?

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

Getting ThinkPHP

http://www.thinkphp.cn/

ThinkPHP project building tutorial

http://www.icoolxue.com/play/2284

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的共同类文件

Entry file:
1.Index.php1ffe7b382b9b551232d4274b1e08eb8d

<?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;;?>

2. admin.phpdf80a9880dd16f3ee57677200f99eccb

<?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;;?>

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!

Statement:
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