Welcome Guest, Not a member yet? Register   Sign In
ajax call to controller function outside root
#1

hi all

my application folder sits about the root
how can i call a controller function from ajax ?

Code:
$('#editabout').click(function() {
  
          

  $.ajax({
    type: 'get',
    url: '../application/controllers/auth_public/editabout',
    dataType: 'html',
    success: function (html) {
    
      $('#testdiv').html(html);
    }
  });
});

thanks
Reply


Messages In This Thread
ajax call to controller function outside root - by Marcel - 10-13-2016, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB