• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.