Welcome Guest, Not a member yet? Register   Sign In
Class 'CI_Controller' not found
#1

I try to call in system/core/Common.php next:
Code:
$ci =& get_instance();
$ci->load->library('session');
$userdetails = $ci->session->userdata('userdetails');

But I getting a fatal error: 
Code:
Class 'CI_Controller' not found in /system/core/CodeIgniter.php on line 233
 
I thought to connect directly:
Code:
require BASEPATH.'core/Controller.php';

But I getting other error:
Code:
Fatal error: Cannot redeclare class CI_Controller in /system/core/Controller.php on line 30


How I can getting session's data in Common.php ?
Reply


Messages In This Thread
Class 'CI_Controller' not found - by Lucy789 - 05-20-2019, 11:49 AM
RE: Class 'CI_Controller' not found - by Wouter60 - 05-20-2019, 01:30 PM
RE: Class 'CI_Controller' not found - by Lucy789 - 05-21-2019, 12:28 AM
RE: Class 'CI_Controller' not found - by InsiteFX - 05-21-2019, 03:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB