错误!请问怎么解决,搞了老半天了
我下载了codeignite后解压到D:\AppServ\www\MyItem下面(D:\AppServ\www这个为apache的目录)
取名为codeignite
然后再config.php中
这个改为
$config['base_url'] ="http://localhost/MyItem/codeignite/";
然后我再controllers中新建了blog.php文件
<?php
class Blog extends Controller
{
function index()
{
echo 'Hello World!';
}
}
?>
我在浏览器上访问http://localhost/MyItem/codeignite/index.php/blog/
出现
An Error Was Encountered The configuration file url.php does not exist.
请问是什么原因?谢谢 看看codeignite/system/config/url.php,存不存在,不存在则发布的包有问题、要么就是你下载的包有问题 的确没有这个文件,但是后来我把下载的包放在D:\AppServ\www下通过http://localhostcodeignite/index.php/blog/就可以访问了 这是什么原因? $config['base_url'] ="http://localhost/MyItem/codeignite/";不对
应该写成: $config['base_url'] ="http://localhost/MyItem/";
页:
[1]