Welcome Guest, Not a member yet? Register   Sign In
troubles using session
#1

[eluser]plainas[/eluser]
I am trying to initialize the session as described on the manual...


This is my code

Code:
<?php
class Query extends Controller {
    
    var $action_url;
    var $search_sites;
    
    function Query(){
        $this->load->library('session');

. . .

can anybody tell me what I am missing here?

I am getting this error:

Fatal error: Call to a member function library() on a non-object
#2

[eluser]Armchair Samurai[/eluser]
You need to place parent::Controller; in your constructor. Take a look at the User Guide specifically the part about class constructors.
#3

[eluser]plainas[/eluser]
Thank you.

dummy me




Theme © iAndrew 2016 - Forum software by © MyBB