后台怎么弄
在ci里面怎么区分前台和后台呢?就是一般的网站不是单独弄一个目录来存后台的文件吗?在ci里面单独建一个文件貌似不行。。 在controller里建立目录views里也一样 我见了一个admin目录
建了一个welcome.php文件
文件内容:
<?php
echo "yes";
?>
但是输入http://localhost/webapp/index.php/admin/welcome
出现:
yes
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\securities\system\application\controllers\admin\welcome.php:2)
Filename: errors/error_404.php
Line Number: 1
404 Page Not Found
The page you requested was not found. welcome.php文件内容不对
也得写成控制器
也得有对应的view 哦,也对。。。想起来了。。。好久不写都忘记了
页:
[1]