1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Session Autoload Problem in CodeIgniter Framework

Discussion in 'PHP' started by salayhin, Feb 16, 2011.

  1. #1
    I have a problem in autoload session.

    Here is the problem.

    ########################

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: _SESSION

    Filename: administration/admin_panel.php

    Line Number: 7


    ########################

    And Here is the admin_panel.php file

    ########################
    SEMrush
    <?php
    class Admin_panel extends MY_Controller
    {
    	function Admin_panel()
    	{
    		parent::MY_Controller();
    		
            $this->checkAdminLogin();
            $this->load->library('pagination');        
    	}
        function index()
        {
            $data['mainContent'] = $this->load->view('administration/index', '', true);  
            $this->load->view('administration/template', $data);        
        }
    
    }
    ?>
    Code (markup):
    ########################

    What about the problem.

    Please help me.

    Thanks
    salayhin
     
    salayhin, Feb 16, 2011 IP
    SEMrush