• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$this->config in model breaks Output.php

#1
[eluser]Crafter[/eluser]
Use of a local class variable $config breake /system/libraries/Output.php.
(suspect same for controllers etc)

To reproduce:

1. Step 1 : Create model
Code:
class MyModel extends Model {

var $config;

   function GalleryModel()
   {
      parent::Model();
      $this->obj =& get_instance();

      $this->config = '';

   }
}

2. Step 2. Create model instamce (in controller)
Code:
$this->load->model('mymodel');

Ouput.php breaks here (when trying to invole global $CFG
Code:
// Is compression requested?
                if ($CFG->item('compress_output') === TRUE)
                {
                        if (extension_loaded('zlib'))
                        ...
                 }

Thank you.


Messages In This Thread
$this->config in model breaks Output.php - by El Forum - 09-30-2007, 06:23 PM
$this->config in model breaks Output.php - by El Forum - 09-30-2007, 07:33 PM
$this->config in model breaks Output.php - by El Forum - 09-30-2007, 07:45 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.