access codeigniter session values from external files

In my codeigniter project i have added KCK finder. it needs some of session values which is controlled by codeigniter. how can i access CI session values from external files ?

CodeIgniter – how to catch DB errors?

Is there a way to make CI throw an exception when it encounters a DB error instead of displaying a message like: A Database Error Occurred Error Number: 1054 Unknown column ‘foo’ in ‘…

CodeIgniter: Preventing row_array() vs row() typo’s?

Twice now I’ve mistakenly used row() instead of row_array() when fetching a single row result. Usually, it goes unchecked without any warning messages. 15-30 minutes later I finally notice the issue; …

Calling a Controller function in another Controller in CodeIgniter

I have a controller “user” in my codeigniter application. This controller has a function called logged_user_only(): public function logged_user_only() { $is_logged = $this -> is_logged(…

Object of class stdClass could not be converted to string

I am having a problem with PHP at the moment, I am getting this error, Object of class stdClass could not be converted to string the error occurs when I run this portion of code in my site, …

CodeIgniter get_where

I’m attempting to use get_where to grab a list of all database records where the owner is equal to the logged in user. This is my function in my controller; function files() { $owner = $this->…

Sending email with gmail smtp with codeigniter email library

load->library(’email’); } function index() { $config[‘…