Blogger Information
Blog 2
fans 0
comment 0
visits 1358
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
tp5
就tm爱学习的博客
Original
613 people have browsed it

tp5安装完成后,直接找到public下的index.php,打开添加两行代码:



// [ 应用入口文件 ]


// 定义应用目录

define('APP_PATH', __DIR__ . '/../application/');

// 加载框架引导文件

require __DIR__ . '/../thinkphp/start.php';



\think\Build::module('index');



\think\Build::module('admin');



添加上面最后两行代码,然后在浏览器访问以下public目录,即可自动创建admin和index文件夹。这两个文件夹在application目录下。

非原创

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
  • tp5
    2018-01-12 17:36:35