• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI3 SESSION

#1
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');
}
}
Reply

#2
https://github.com/bcit-ci/CodeIgniter/b...ad.php#L55
Reply

#3
Session is not a driver, it is a library.

Loading it using $autoload['libraries'] = array('session'); should solve your problem.
Reply

#4
(03-24-2015, 02:23 PM)silentium Wrote: Session is not a driver, it is a library.

Loading it using $autoload['libraries'] = array('session'); should solve your problem.

Oh yes! is true! didn't realized i put it in the libraries autoload.. Thank you Silentium
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.