thinkphp5修改view到根目录实例方法
作者:zhenchao248 时间:2024-05-03 15:51:58
利用PHP中的thinkphp5进行项目开发,将view一道项目跟目录下
进入到/www/wwwroot/xxxx/application/config.php修改模板设置
进入模板方法
public function planLists(){ return view('/pxxxsts');}
扩展知识点:
thinkphp默认的View都是在/Application各个模块下的;
css、js之类的资源文件是放在/Public目录下;
大致是这个样子的;
thinkphp
├─Application 项目逻辑目录
│ ├─Common 公共模块
│ │ ├─...
│ ├─Home Home模块
│ │ ├─Controller Home控制器目录
│ │ ├─...
│ │ ├─View Home模块下的视图目录
│ │ │ ├─Index
│ │ │ │ ├─index.html
│ │ │ │ ├─...
│ │ │ ├─Tag
│ │ │ │ ├─index.html
│ │ │ │ ├─add.html
│ │ │ │ ├─edit.html
│ │ │ │ ├─...
│ ├─Admin Admin模块
│ │ ├─Controller Admin控制器目录
│ │ ├─...
│ │ ├─View Admin模块下的视图目录
│ │ │ ├─Index
│ │ │ │ ├─index.html
│ │ │ │ ├─...
│ │ │ ├─Article
│ │ │ │ ├─index.html
│ │ │ │ ├─add.html
│ │ │ │ ├─edit.html
│ │ │ │ ├─...
│ ├─...
├─Public 资源文件目录
│ ├─Home 前台Home视图目录
│ │ ├─Public 前台Home的公共目录
│ │ │ ├─js home下调用的js文件目录
│ │ │ ├─css home下调用的css文件目录
│ │ │ ├─images home下调用的图片文件目录
│ ├─Admin 前台Home视图目录
│ │ ├─Public 前台Home的公共目录
│ │ │ ├─js home下调用的js文件目录
│ │ │ ├─css home下调用的css文件目录
│ │ │ ├─images home下调用的图片文件目录
│ ├─...
├─ThinkPHP 框架系统目录
标签:thinkphp5,view,根目录
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python做文本按行去重的实现方法
2021-12-31 17:41:07
SQLPlus命令操作用法详解
2024-01-27 23:00:18
![](https://img.aspxhome.com/file/2023/9/66549_0s.png)
python使用itchat库实现微信机器人(好友聊天、群聊天)
2023-07-12 10:38:39
Python基础知识+结构+数据类型
2021-03-11 12:55:33
![](https://img.aspxhome.com/file/2023/5/121365_0s.png)
Vue ElementUI之Form表单验证遇到的问题
2023-07-02 16:56:54
![](https://img.aspxhome.com/file/2023/1/139841_0s.png)
InnoDB引擎数据库主从复制同步新的分享
2024-01-15 10:33:32
pandas条件组合筛选和按范围筛选的示例代码
2023-06-13 07:15:37
![](https://img.aspxhome.com/file/2023/7/101127_0s.png)
JS:window.onload的使用介绍
2024-04-23 09:12:47
Python打印输出数组中全部元素
2022-08-07 19:35:12
python批量下载抖音视频
2023-09-05 11:26:14
![](https://img.aspxhome.com/file/2023/6/99236_0s.png)
Python数据可视化之绘制柱状图和条形图
2022-10-19 21:51:46
![](https://img.aspxhome.com/file/2023/8/97338_0s.png)
SQL点滴24 监测表的变化
2011-09-30 11:38:41
python如何为创建大量实例节省内存
2023-03-19 06:35:37
Golang你一定要懂的连接池实现
2024-02-04 13:39:38
Pycharm 2to3配置,python2转python3方式
2021-07-05 21:39:50
![](https://img.aspxhome.com/file/2023/4/133794_0s.jpg)
python 用for循环实现1~n求和的实例
2022-08-18 01:51:17
无法远程登入MySQL数据库的几种解决办法
2012-04-13 11:57:41
python GUI库图形界面开发之PyQt5信号与槽机制、自定义信号基础介绍
2022-04-18 06:08:49
![](https://img.aspxhome.com/file/2023/1/81551_0s.png)
如何把Oracle 数据库从 RAC 集群迁移到单机环境
2024-01-28 06:29:05
javascript实现简单的二级联动
2024-04-19 09:49:15