For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Saturday, July 05, 2014

CodeIgniter Undefined property CI_Loader $session codeigniter error

Problem:

If you works in CodeIgniter and play with session then you can get this error message :
Undefined property: CI_Loader::$session

CodeIgniter Undefined property CI_Loader $session codeigniter error

A PHP Error was encountered CodeIgniter
CodeIgniter error

 Severity: Notice
Message: Undefined property: CI_Loader::$session

Solution:

It means that you have not loaded session library in it controller's index or constructor as
$this->load->library('session'); 

Example:

To prevent this error message use listed below code:

public function index() {
        $this->load->library('session');
}
Share:

0 comments:

Post a Comment

How to make center align child div

 How to make center align child div?   Suppose you have 2 Div tag. And want the make inner tag center <div id="d1">      ...

Ads Inside Post

Powered by Blogger.

Arsip