When I upgraded my server to php7 codeigniter and in particular datamapper ORM gives me this error...
Message: Accessing static property DataMapper::$config as non static
Filename: libraries/datamapper.php Line Number: 6474
the function in question is...
protected function _dmz_assign_libraries()
{
static $CI;
if ($CI || $CI =& get_instance())
{
// make sure these exists to not trip __get()
$this->load = NULL;
$this->config = NULL;
$this->lang = NULL;
// access to the loader
$this->load =& $CI->load;
// to the config
$this->config =& $CI->config;
// and the language class
$this->lang =& $CI->lang;
}
}