title: Can I extend the codeigniter core system, to use my custom functions on multiple sites?
body: <p>I am currently using CodeIgniter to support one site, whose main purpose is to display multiple editable tablekit tables, and handle the AJAX that arrives when you edit them. A kind of PHPMyAdmin [VERY] Lite. It has a number of core helpers and controllers, which run the main workings of the site, mixed in with some site specific controllers and helpers.</p>
  
  <p>I would like to restructure my site so that I can reuse the core code-base in another site. However, I would still like to be have some default controller functions and some cutsom functions in the same controller; i.e. in a system file somewhere:</p>
  
  <pre><code>class My_core extends Controller{
      /*
        Lots of base functions
      */
  }
  </code></pre>
  
  <p>and on one site:</p>
  
  <pre><code>class site_1 extends My_Core{
      /*
         Site specific functions
      */
  }
  </code></pre>
  
  <p>Then on the other site:</p>
  
  <pre><code>class site_2 extends My_Core{
      /*
         Site specific functions
      */
  }
  </code></pre>
  
  <p>Does anyone have any guidance on how I can do this?</p>
  
  <p>Thanks,</p>
  
  <p>Lemiant</p>