CI3 SESSION - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: CI3 SESSION (/showthread.php?tid=1566) |
CI3 SESSION - poseso - 03-21-2015 I'm trying to create a custom helper for ci3, and trying to store the values on $_SESSION variable, so i tried to auload session with $autoload['drivers'] = array('session'); on /application/config/autoload.php, but i am getting an error: A PHP Error was encountered Severity: Notice Message: Undefined: 110 could it be something in my admin controller? <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Admin extends CI_Controller { public function _construct() { parent::_construct(); } public function index(){ $this->load->view('Portada'); } } RE: CI3 SESSION - ivantcholakov - 03-22-2015 https://github.com/bcit-ci/CodeIgniter/blob/3.0rc3/application/config/autoload.php#L55 RE: CI3 SESSION - silentium - 03-24-2015 Session is not a driver, it is a library. Loading it using $autoload['libraries'] = array('session'); should solve your problem. RE: CI3 SESSION - poseso - 03-24-2015 (03-24-2015, 02:23 PM)silentium Wrote: Session is not a driver, it is a library. Oh yes! is true! didn't realized i put it in the libraries autoload.. Thank you Silentium |