I currently have the following javascript:
function updateView(set) {
alert(set);
$.post( "show_cards", function( data ) {
});
}
I'm getting a 404 for show_cards even though I have a controller show_cards.php:
<?php
//show_cards.php
class Show_Cards extends CI_Controller {
public function index() {
$this->load_page();
}
public function load_page() {
$this->load->view('show_cards_view');
}
}
Why won't this work? It isn't able to find show_cards.php and is giving me a 404. Why is this?