title: Separating Controllers for each module in Code Igniter
body: <p>P.S This question may already be existing but the answer didn't satisfied what I was trying to figure out. I'm using code igniter for the first time in my new project.</p>
  
  <p>So I have this only one controller which is main.php and populated with a lot of public function. Now everytime I go to main.php the url is looks like <code>cmms/main</code> and everytime I'm going for its subclass it goes <code>cmms/main/asset</code>. </p>
  
  <p>Now the subclass asset has many functions which are in main.php. What I want is to make separate controllers for each module. so i have <code>cmms/main</code> as main.php &amp; <code>cmms/asset</code> as asset.php instead of making it under <code>cmms/main/asset</code>. Would this be possible? or I should just leave it alone and continue putting all codes in the main.php controller?
  My default route is the main controller.</p>
  
  <pre><code>$route['default_controller'] = 'main';
  </code></pre>