Welcome Guest, Not a member yet? Register   Sign In
help me about load session
#1

(This post was last modified: 09-13-2015, 09:11 PM by seasenx6.)

i load session but i have error load model why error?

i not load session -> load model is work.
Reply
#2

What is the error? Is the session being loaded anywhere else (for example, in a controller, or is it in the autoload config)?
Reply
#3

my __construct() on subfolder controller

PHP Code:
public function __construct() {
    
parent::__construct();
    
$this->load->model('backend/Landingexpress_model''Landingexpress_model');


config session
PHP Code:
$autoload['libraries'] = array('database','upload''session');
///
$config['encryption_key'] = 'asdhkjhdfuwehrljkhwejrh';
///
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE

when i load model on __construct() my view is error 'Unable to locate the specified class: Session.php';

when i not load model session is working.

i dont where i wrong thank you.
Reply
#4

What does the model's constructor look like? Is it trying to load the session, or just trying to access it?
Reply
#5

(This post was last modified: 09-15-2015, 08:22 AM by seasenx6.)

Oh thank "mwhitney" you say check model's constructor.

In model, i write "Extends CI_Controller".

ok i change "Extends CI_Model" -> session is work.

my big error and learning, oh very fun to me lol.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB