title: Routing controllers in subfolders using CodeIgniter
body: <p>since i want to separate the frontend and backend of the system. i have created 2 folders inside controllers as frontend and backend</p>
  
  <p>Below is the structure of my controller folder</p>
  
  <pre><code>controller
   --frontend
     ---store.php
     ---processing.php
     ---profile.php
     ---authenticate.php
     ---register.php 
  
   --backend
     ---authenticate.php
     ---stats.php
     ---users.php
     ---property_manage.php
     ---register.php 
  </code></pre>
  
  <p>i can access the functions by using</p>
  
  <pre><code>frontend/store/add
  frontend/store/manage
  ......
  
  backend/stats/sales
  backend/stats/payments
  .....
  </code></pre>
  
  <p>but i want to take off the frontend and the backend segments from the url. </p>
  
  <p>I checked the routing feature in codeigniter but according to my knowledge i need to individually specify each route. Since i have about 12 controllers and each has around 10 -15 functions i might have to specify each and every function to the route.</p>
  
  <p>is there any other efficient way to achieve using routing or any other way? (without using any htaccess)</p>