Welcome Guest, Not a member yet? Register   Sign In
extending MY_Controller
#1

[eluser]kmunky[/eluser]
ok, i have read on the forum how to extend Controller class but i can't find an answer to my problem.

i have



application/libraries/MY_Controller.php
Code:
class MY_Controller extends Controller(){

       function __construct(){
      
             parent::Controller();
       }
}

then i try to extend MY_Controller, (i'm trying to get two controllers, one for the frontend and oane for the admin section of my site)


application/libraries/F_Controller.php
Code:
class F_Controller extends MY_Controller{

        function _construct(){

             parent::MY_Controller();
        }
}


application/controllers/contact.php
Code:
class Contact extends F_Controller{

       function __construct(){

            parent::F_Controller();
       }
}


but all i get is Fatal error: Class 'F_Controller' not found in C:\wamp\www\...\contact.php


Messages In This Thread
extending MY_Controller - by El Forum - 12-06-2010, 10:20 AM
extending MY_Controller - by El Forum - 12-06-2010, 10:30 AM
extending MY_Controller - by El Forum - 12-06-2010, 10:35 AM
extending MY_Controller - by El Forum - 12-06-2010, 11:56 AM
extending MY_Controller - by El Forum - 12-07-2010, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB