Welcome Guest, Not a member yet? Register   Sign In
I can't send a AJAX request in a codeigniter server
#11

(This post was last modified: 11-04-2020, 12:03 PM by InsiteFX.)

You already have a route so you can set your ajax url like this.
PHP Code:
// change this;
url:'/signin',

// to this
url'<?= route_to('login/signin') ?>'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB