I'm trying to use jQuery .post method in CodeIgniter; Even though I send request to the same domain and there should be no cross-domain issue, I get empty response. Here is my code:
$('#send-transaction').click(function(){
$.post('/authorized/test1',function(data){alert(data);});
});
And function test1() of authorized controller looks like:
function test1() {echo "test";}
How can I get it to return the function's output (in this case, string "test")?
UPDATE
The reason is in invalid controller; Moving discussion to another question: