访问出错 http://localhost/mooc/Index/user/id/1.html
尝试了很多次,而且都一个个试过了,按前面的评论。请懂了的同学,指导下,谢谢。
conf.php的代码
<?php
return array(
//'配置项'=>'配置值'
'name'=>'holli',
'LOAD_EXT_CONFIG'=>'user',
'URL_MODEL'=>2,
);
?>
.htaccess内
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
在apache内,把none都改成了all,依旧。。。
无法加载模块:user
错误位置
FILE: C:\wamp\www\Mooc\ThinkPHP\Lib\Core\App.class.php LINE: 122
TRACE
[16-08-31 16:57:08] C:\wamp\www\Mooc\ThinkPHP\Lib\Core\App.class.php (122) _404(无法加载模块:user)
[16-08-31 16:57:08] C:\wamp\www\Mooc\ThinkPHP\Lib\Core\App.class.php (207) App::exec()
[16-08-31 16:57:08] C:\wamp\www\Mooc\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[16-08-31 16:57:08] C:\wamp\www\Mooc\ThinkPHP\Common\runtime.php (242) Think::start()
[16-08-31 16:57:08] C:\wamp\www\Mooc\ThinkPHP\ThinkPHP.php (30) require(C:\wamp\www\Mooc\ThinkPHP\Common\runtime.php)
[16-08-31 16:57:08] C:\wamp\www\Mooc\index.php (5) require(C:\wamp\www\Mooc\ThinkPHP\ThinkPHP.php)
ThinkPHP3.1.2 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]