Welcome Guest, Not a member yet? Register   Sign In
Ajax Post or get path
#1

[eluser]abbe01[/eluser]
Below are my file system of CI:
Code:
-assets
   - default
      - css
      - js
         - ajax.js
   - shared
-engine
-system
  - controller
     - admin
       - template.php
  - view
  - model
Now, I put my ajax file under the assets/default/js/ajax.js
From the ajax file, I pass the url as "../admin/template/my_function".
But, it seen unsuccess to open the port.. Anybody know what is the correct path I should passing to? Thanks.
#2

[eluser]Michael Wales[/eluser]
pass the url /index.php/admin/template/my_function
#3

[eluser]abbe01[/eluser]
yes..u r right..thanks




Theme © iAndrew 2016 - Forum software by © MyBB