查看: 1118|回复: 3
|
Codeigniter在server不能跑!
[复制链接]
|
|
我已经去google how to setup codeigniter on server,
config。php
autoload.php
database。php
还有WWWroot的index.php做了设定。
我在welcome。php controller
load-》model
然后
print_r($array);
可以看到结果。
但是就是不能
call 其他的 controller name
显示error如下:
The page cannot be found
Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
还有这个
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
就是不能把controller里面model return 回来的 $data
pass去view
$data['user'] = $this->admin_model->listuser();
$this->load->view('viewuser',$data);
viewuser 会说不懂 $db什么的。
是不是IISserver影响到呢?敬请高人指点。
|
|
|
|
|
|
|
|
发表于 14-10-2013 05:18 PM
|
显示全部楼层
请问你有没有打正确的网址? 要call controller method 就是这样 : index.php/controller name/ controller method |
|
|
|
|
|
|
|

楼主 |
发表于 17-10-2013 03:21 PM
|
显示全部楼层
是hosting问题,换去hostinger。my就问题解决,感激你的回复。 |
|
|
|
|
|
|
|

楼主 |
发表于 18-10-2013 03:04 PM
|
显示全部楼层
应该是apache no mod——rewrite。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|