为什么老是显示这个页面?
Welcome to CodeIgniter!The page you are looking at is being generated dynamically by CodeIgniter.
If you would like to edit this page you'll find it located at:system/application/views/welcome_message.php
The corresponding controller for this page is found at:system/application/controllers/welcome.php
If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.
Page rendered in 0.0280 seconds 贴你的代码,以及你访问的url 全是默认的。 home.php
<?php
class Home extends Controller{
function __construct(){
parent::controller();
}
function index(){
$this->load->view('index');
}
}
?> views/index.php
<?php
echo "成功";
?> 请使用这个访问
http://127.0.0.1/ci路径/index.php/home 这样是成功了,可是怎么设置让他默认就直接显示呢? 麻烦看看手册
http://codeigniter.org.cn/user_guide/general/controllers.html 谢谢版主 我明白了,默认显示的话,
改这里。
$route['default_controller'] = "";
页:
[1]