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

(10-13-2016, 11:19 AM)PaulD Wrote: The url you use is exactly like a normal link url, index.php will pick it up and convert it to wherever you application root is or follow any routing rules etc

PHP Code:
url'<?php echo site_url('auth_public/editabout'); ?>'

Alternatively you can hard code it in if your js is not contained in a view. Or you can set your base_url in a data attribute somewhere are read it in.

you are a genius thanks

is it goot to put in root to hide 'auth_public'

$route['editabout'] = 'auth_public/editabout';
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB