我被似乎很常见的东西所困扰。我已经看到了很多这样的问题,所以我知道这在某种程度上与其他问题有关,但是我仍然无法弄清楚为什么我会收到这个错误
我有最新的 codeigniter
我的控制器类
class AddLog extends CI_Controller {
public function __construct(){
parent::__construct();
}
public function occupierLog_add(){
$this->load->view('LogViews/LogIncident_Occupier/AddLogIncident');
}
public function add_log(){
$newLog = $this->input->post(null, true);
var_dump($newLog);
}
}
我的索引 html
<html>
<head>
<title>Hello</title>
</head>
<body>
<a href="http://localhost/Concierge/application/controllers/Logs/AddLog.php/AddLog/occupierLog_add">Log Incident - Occupier</a>
</body>
</html>
如您所见,我的控制器 AddLog 位于 contollers/Logs 目录中。在其中一种方法中,我试图调用位于 views/LogViews/LogIncident_Occupier/...