摘要: 跨控制器调用方法 1. 先造对象,再调用里面的方法 $sc=new \Home\Controller\IndexController(); 用绝对路径找 echo $sc->ShuChu(); 2. $sc=new IndexController(); 用相对路径 echo $sc->ShuChu(); 还可以使用thingkphp中的快捷方法 1. $sc=A("Index"... 阅读全文
posted @ 2018-06-26 09:42 遇事稳坐钓鱼台 阅读(1863) 评论(0) 推荐(0) 编辑