Welcome Guest, Not a member yet? Register   Sign In
Helpers nor the session class won't initiate... what am I doing wrong?

Here is my code:

class Admin extends Controller {

    function __construct() {
    function index() {
        if ( isset($this->session->userdata('logged_in')) && $this->session->userdata('level') == 'admin') {
        } else {

I am using PHP5 so it's not the __construct... I am new to code igniter... what am I doing wrong here?

Try calling the parent::Controller() constructor before you load your library/helper.

Tried doesn't work, object is not initiated

My bad it was my host I forgot I had to turn on PHP5

Theme © iAndrew 2016 - Forum software by © MyBB