title: Extending The Controller Class in CodeIgniter
body: <p>I have <code>class MY_Controller extends CI_Controller</code> and common logic for big profile section, so I'va tried to create <code>class Profile extends MY_Controller</code> with common logic for profile section and all class related to this section should extends this Profile class as I understand right, but when I tried to create <code>class Index extends Profile</code> I recieve an error:</p>
  
  <pre><code>Fatal error: Class 'Profile' not found
  </code></pre>
  
  <p>CodeIgniter tries to find this class in <code>index.php</code> which I am running. </p>
  
  <p>Where is my mistake? Or maybe there is anoter better way to mark out common logic?</p>