Whats my modules configuration page link?
In my view ive got some jquery to send an ajax request
$(document).on('click', '#ajax_add_video', function(e) {
e.preventDefault();
var product_id = $('input[name=id_product]').val();
var embed_code = $('#add_video').val();
$.ajax({
type: 'POST',
url: '/modules/rvlvideos/rvlvideos.php&ajax=1&action=storevideo',
data: {
product_id: product_id,
embed_code: embed_code
},
dataType: 'json',
success: function(json) {
console.log(json);
}
})
return false;
});
Then in my module controller, /modules/rvlvideos/rvlvideos.php ive got an ajaxProcessStoreVideo() method
public function ajaxProcessStoreVideo()
{
return 'GOT TO MY CLASS';
}
But when I click my #ajax_add_video button - my ajax response is a 404 page not found error....