Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

ajax call to controller function outside root

$
0
0
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

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>