title: How to load a controller from another controller in codeigniter?
body: <p>I want to load a controller from a function in another controller because the library I integrated to my project I don't want to load it to the controller because I want to keep it clean and related.</p>
  
  <p>I tried using modules but I still had to put controller in the url like </p>
  
  <p><a href="http://example.com/maincontroller/function" rel="noreferrer">http://example.com/maincontroller/function</a><br />
  <a href="http://example.com/othercontroller/function" rel="noreferrer">http://example.com/othercontroller/function</a></p>
  
  <p>I have default controller so I can load <a href="http://example.com/function" rel="noreferrer">http://example.com/function</a> so how could I access the controller from a function from main so I don't have to put the controller in the url.</p>
  
  <p>I'm still willing to use HMVC if I can load the controller function from the main controller function. </p>