problem with session in template |
I created MY_Controller in application/core/ and this is the code:
PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); In the all other controller I edit in this way: PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); But when I try to access in the page I found this error: Code: A PHP Error was encountered Code: A PHP Error was encountered How should I do? Sorry but it is the first time that I attempt to well with CI EDIT: If I move Code: $session_data = $this->session->userdata('logged_in'); In the __construct() session data makes them see me but this is the error: Code: A PHP Error was encountered |
Messages In This Thread |
problem with session in template - by StratoKyke - 05-14-2015, 02:35 AM
RE: problem with session in template - by paralogizing - 05-14-2015, 09:29 AM
RE: problem with session in template - by StratoKyke - 05-14-2015, 09:35 AM
RE: problem with session in template - by StratoKyke - 05-15-2015, 05:31 AM
RE: problem with session in template - by StratoKyke - 05-16-2015, 08:39 AM
RE: problem with session in template - by CroNiX - 05-16-2015, 03:56 PM
RE: problem with session in template - by StratoKyke - 05-17-2015, 03:18 AM
RE: problem with session in template - by CroNiX - 05-17-2015, 09:52 AM
RE: problem with session in template - by StratoKyke - 05-17-2015, 10:08 AM
|