title: Change CodeIgniter controllers directory depending on url
body: <p>I'm new to CodeIgniter and I have to make a mobile website which will be on a subdomain. The only  different thing to be loaded depending if you are mobile or not would be the <code>controllers</code> directory, all the rest of the application folder is fine for both versions. How can I tell CodeIgniter to charge specific <code>controllers</code> directory depending on some parameters?</p>
  
  <p>Or maybe isn't it the best way to manage mobile site based on a subdomain with CodeIgniter? I want to have access to the same custom libraries and models.</p>
  
  <p>Thanks for guiding me, I'm lost! :)</p>