The random ramblings of @simnom

CodeIgniter Incomplete Object Names

Been trying to store a CI object in a cache file and then retrieve that object later in the application.  Problem is if your not careful you’ll get __PHP_Incomplete_Class_Name cropping up all over the place.  To avoid this don’t load the session library and make sure you load your models before the session library is initialised in your controller like so:

$this->load->model('store_finder_m');
$this->load->library('session');
$sid = $this->session->userdata('session_id');

  1. simnomdev posted this