05-09-2008, 04:31 PM
|
#21 (permalink)
|
|
The Contributor
Join Date: Apr 2008
Location: Tampa, FL
Posts: 65
Thanks: 6
|
well ran into an issue i wanted to ask
Code:
function __construct(){
$EvulSess = EvulSession::getInst();
$EvulSys = $this->Connect();
}
is my evulsys constructor, but its not doing what its supposed to... i think.
well, i have
index.php
files/index.php
sources/(my classes)
when i try to $system->SetGuest(); on files/index.php
i get an error...
Quote:
Fatal error: Call to a member function set_var() on a non-object in C:\httpd\www\EvulCMS\sources\EvulSys.php on line 45
|
which, is this
Code:
function SetGuest(){
//$EvulSess = EvulSession::getInst();
$EvulSess->set_var("usr_nme", "Guest");
}
i have the line commented out, because, if i uncomment that line, it works, and sets guest...
without that line, i get the error
shouldn't that be taken care of by the constructor? not each time each method is used like this? or should i be setting $EvulSess like that, in every method i need to use my session instance?
__________________
"Knowledge is power. Abuse it."~Evulness
My portfolio: www.evularts.com
|
|
|