title: Good way to right ajax in Codeigniter?
body: <p>I was wondering around for a good way to write ajax in CodeIgniter. Is it ok to write ajax in views? or is it ok to make a new directory on the root of CodeIgniter project folder with the name of assets and move all the script in js folder that is within our assets folder.
  If i put my script in assets folder than what to write in $.ajax url: ???????. </p>