title: What is the best solution( especially for performance and clean code ) to use __autoload in codeigniter?
body: <p>I will use __autoload function in Codeigniter, but I'm not sure what is the best way.</p>
  
  <p>I have read Phil Sturgeon's article and he uses at the bottom of config.php and
  I asked to my friend, he uses in index.php</p>
  
  <p>But I think they are not clean usage.</p>
  
  <p>I want to use it in hook but I read this answer( last answer in the page ) <a href="https://stackoverflow.com/questions/6188727/how-to-add-autoload-function-to-codeigniter">How to add autoload-function to CodeIgniter?</a>
  and there is a negative vote on it.</p>
  
  <p>Is to use in hook not good solution?</p>