天然纯小白:ci3.1.7 的一个捉摸不透的问题!
我下载了CI3.1.7 , 然后放在ci317目录里,然后写了一个test.php在控制器里,
class Test extends CI_Controller{
//官方给的写法,构造函数
public function __construct()
{
parent::__construct();
}
public function index()
{
echo 'fdfdsafdsafdsafds';
}
}
然后我在浏览器里输入:http://localhost/ci317/test
出现:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
我什么都没动啊~ 什么原因????? 如果你没有做去掉Index.php的相关设置,那你就得加上index.php,http://localhost/ci317/index.php/test 已经解决! 看下手册
页:
[1]