05-14-2010, 01:09 PM
|
#4 (permalink)
|
|
The Wanderer
Join Date: May 2010
Posts: 7
Thanks: 0
|
Ok.
The Error was in the Constructor of my Core Class.
PHP Code:
public function __construct(){ $this->initSessionFactory(); $this->initSessionHandler(); $this->initUserSession(); $this->initTemplateEngine(); $this->initRequestHandler(); $this->initDatabaseEngine(); }
PHP Code:
$this->initRequestHandler();
This Function calls the Class RequestHandler, where the $_REQUEST varibale is split into 2-4 static Variables
For an Example:
URL: index.php?page=Index
Result of RequestHandler:
$urlCategorie = page
$urlPage = Index
then the RequestHandler is including the page in "./lib/ page/ IndexPage.class.php"
I tried to fetch an DatabaseObject in this File but the initializtion of the Database wasn't done in the constructor of the Core Class.
so I fixed the Order of the constructor to
PHP Code:
public function __construct(){ $this->initSessionFactory(); $this->initSessionHandler(); $this->initUserSession(); $this->initTemplateEngine(); $this->initDatabaseEngine(); $this->initRequestHandler(); }
and it works.
It was an Runtime Error I think.
__________________
Sorry for my Bad English xD Iam german ^^
|
|
|
|