Welcome Guest, Not a member yet? Register   Sign In
Another My_Controller not found problem ... but this one is a bit different !
#1

[eluser]Monarobase[/eluser]
Hello,

I've been pulling my hair out trying to find a solution for this one so I thought I would ask you for some advice !

I've extended the controller class with MY_Controller and it works fine on MAMP but when I run it on my production server MY_Controller doesn't seem to get loaded !

Codeigniter version : 1.7.2

Error :
Code:
Fatal error: Class 'My_Controller' not found in ... line 3

File : application/libraries/MY_Controller.php

File Contents :
Code:
<?php
class MY_Controller extends Controller {

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

    function login() {
                //LOAD VIEW AND LOGIN
        }
}

Controller contents :

Code:
<?php
class View extends MY_Controller {
    
    function View() {
        parent::MY_Controller();
        $this->db->query("SET NAMES 'utf8'");
        $this->session->expire_cookie(false);
    }
    
    function index() {

    }
}

MAMP PHP version : 5.2.11

PRODUCTION SERVER PHP version : 5.2.11

The files are identical, I uploaded a zip file containing all the files and unzipped it to make sure none were lost during FTP upload...

Any advice would be most appreciated !


Messages In This Thread
Another My_Controller not found problem ... but this one is a bit different ! - by El Forum - 05-03-2010, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB