在我的controllers/automation.php
文件中,我有:
class Automation extends CI_Controller {
// some code here
public function search() {
// implementation of the search function
}
}
现在,在我的library.js
文件中,我有:
function search()
{
var date = $("#datepicker").val();
$.post('./automation/search', { date : date.toString() },
function(answer){
alert(answer);
}
);
return;
}
然而,萤火虫显示:
POST http://localhost/ci/automation/search 404 Not Found
那什么是正确的url
呢?