Welcome Guest, Not a member yet? Register   Sign In
$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



Theme © iAndrew 2016 - Forum software by © MyBB