in my controllers/automation.php
file, I have:
class Automation extends CI_Controller {
// some code here
public function search() {
// implementation of the search function
}
}
Now, on my library.js
file I have:
function search()
{
var date = $("#datepicker").val();
$.post('./automation/search', { date : date.toString() },
function(answer){
alert(answer);
}
);
return;
}
However, firebug shows:
POST http://localhost/ci/automation/search 404 Not Found
what would be the correct url
then?