|
我已经去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影响到呢?敬请高人指点。
|
|