求助:TP的不同应用模块如何实现共用访问

浏览:332 发布日期:2019/02/22 分类:ThinkPHP5专区
比如我的目录结构是:
-Application
  |--pc
   |--controller
    |--Index
  |--mobile
   |--controller
    |--Index
  |--admin
   |--controller
    |--Index

我需要当我访问mobile/index时,默认判断pc下是否有pc/index,如果有,直接调用pc/index(控制器作判断输出mobile下的的模板文件),如果没有,直接调用mobile/index。
不知道这种思路有什么方法可以实现
最佳答案
评论( 相关
后面还有条评论,点击查看>>