title: How to call sub folder controller with routing CodeIgniter
body: <p>I am using CodeIgniter framework. I have files in my controllers folder like this:    </p>
  
  <pre class="lang-none prettyprint-override"><code> - Controllers
   --- admin.php - Admin Controller
   --- /Admin - Admin Folder
   ----- category.php - Category Controller in Admin folder.
  </code></pre>
  
  <p>The Url: <code>mysite.com/index.php/admin/category</code> says that page not found because it is trying to call the <code>category</code> function of <code>admin</code> controller but I want it to call the <code>index</code> function of <code>category</code> controller in <code>Admin</code> folder.</p>
  
  <p>Also I am using the <code>admin</code> controller for create, edit etc. functions of <code>admin</code> controller like <code>mysite.com/index.php/admin/create</code>.</p>
  
  <p>I think, I should use the <code>$route</code> array in config file. What routing should I use?</p>