thinkphp3.2.3 无法加载控制器Index,怎么办
thinkphp吧
全部回复
仅看楼主
level 2
0花钱买知识0
楼主
2015年03月10日 06点03分
1
level 2
0花钱买知识0
楼主
我把controller中的indexcontroller.class.php删了,然后新建了两个文件夹,在文件夹中新建了indexcontroller.class.php文件,当我在浏览器中输入的时候就这样了....
2015年03月10日 06点03分
2
level 2
0花钱买知识0
楼主
怎么办
2015年03月10日 06点03分
3
level 8
星辰🌀幻灭
代码贴下
2015年03月10日 08点03分
4
level 2
0花钱买知识0
楼主
这是配置文件
<?php
return array(
//'配置项'=>'配置值'
'APP_GROUP_LIST' =>'index,admin',
'DEFAULT_GROUP' => 'index'
);
这是控制器
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
public function index(){
echo 'this is index';
}
}
2015年03月11日 08点03分
5
wanzhende
3.2.3版本能配置APP_GROUP_LIST吗?不都是改名叫模块了吗? 'MODULE_ALLOW_LIST' => array('Home','Admin','User'); 'DEFAULT_MODULE' => 'Home', // 默认模块
2015年05月15日 09点05分
绑架爱情
写错了吧?
2015年05月16日 04点05分
隐姓埋名199161
你分了组,访问时加Home
2015年05月31日 01点05分
level 2
0花钱买知识0
楼主
我就是把控制器外面又套了一层文件夹
2015年03月11日 08点03分
6
level 4
3636buy
加上文件夹
2015年05月15日 02点05分
7
level 10
干嘛09
url路径不对,控制器前加文件夹名字
2015年05月15日 04点05分
8
level 1
asdjalsjd3399
配置文件
2015年05月23日 02点05分
9
level 3
隐姓埋名199161
人生励志,www. fangzsj. cn
2015年05月31日 01点05分
10
level 12
桃园丶龙玉箫
加上文件夹,不过3.2.3支持分层么
2016年08月16日 23点08分
12
level 1
果果zzl
我新建了一个模块后,无法加载了,要怎么解决
2016年08月17日 15点08分
13
level 1
果果zzl
Home模块的Index控制器能正常加载,但是其他的控制器都加载不了....怎么破
2016年08月17日 15点08分
14
但愿不曾遇见y
你解决了么
2016年08月28日 04点08分
果果zzl
@但愿不曾遇见y
已经解决了,谢谢
2016年09月07日 13点09分
玩家王座
回复 果果zzl 怎么解决的
2016年09月07日 17点09分
果果zzl
@玩家王座
要在入口删除 bind_module那一行,控制器如果除首字母外有大写的字母,要在访问时写成大写
2016年09月08日 11点09分
level 2
circle3366
试试手动输入路径访问,“项目名称/index.php/Index/index”
2016年09月22日 13点09分
15
time我叫小顺子
这个可以访问
2016年10月04日 14点10分
time我叫小顺子
自己定义的就不行
2016年10月04日 14点10分
level 3
Joey▫
把你的文件全部改权限 所有人都可以读与写
2016年10月03日 09点10分
16
1