CodeIgniter Forums
ajax url not accepting controller? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: ajax url not accepting controller? (/showthread.php?tid=46742)



ajax url not accepting controller? - El Forum - 11-13-2011

[eluser]Gukkie[/eluser]
Hi, i have an ajax function which has a url of, and it works just fine:

url : 'refresh_captcha'

Now, this is the function in the user controller, if i add the controller as such:

url : 'user/refresh_captcha'

It does not work as it shows the url as: http://mysite/user/user/refresh_captcha

It seems to call the controller by default already, is this normal or am i doing something wrong?

Cheers!