Welcome Guest, Not a member yet? Register   Sign In
upgrade 171 to 172 - Class 'Globals' not found in
#1

[eluser]Scott Boyde[/eluser]
Hi

I am trying to upgrade my CI install to the latest version and I am getting the following error.


Fatal error: Class 'Globals' not found in F:\xampp\htdocs\www.nifootball.co.uk\application\modules\pages\controllers\pages.php on line 2
#2

[eluser]Ben Edmunds[/eluser]
Please show us your pages.php file.
#3

[eluser]Scott Boyde[/eluser]
Code:
<?php include(APPPATH.'/controllers/globals'.EXT);
class Pages extends Globals
{
    var $data    = array();
    
    function Pages() {
        parent::Globals();
        $this->load->model('fantasy_model');
        $this->load->model('image_model');
        $this->data['controller'] = 'pages';
    }

I have only added the first few lines.

Scott
#4

[eluser]flaky[/eluser]
have you tried this
Code:
require_once(BASEPATH . 'application/controllers/globals' . EXT);

instead of
Code:
include(APPPATH.'/controllers/globals'.EXT);
#5

[eluser]Scott Boyde[/eluser]
Sorry guys seems to be a red herring, wiped everything out and started over and its all working.

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB