My OOP Project
There is something wrong with my Project.
The Error Message is
"Fatal error: Call to a member function sendQuery() on a non-object in lib\page\IndexPage.class.php on line 9"
The Errormessage says that the Class for the DAL ( Database Abstaction Layer) is not initialized.
But the class is initialized in the CMSCore Class under
The Error is only when I try to send an Query from the File
wenn I write the Statment in the index.php in the Root Dir it works.
Can everybody Help me?
If there are some Questions about the Project, how it should work, feel free to ask me.
I dont understand the error because the Template Engine is initialized at the same way and it works.
The hole Project is as an Attachment below.
Please make no Copy of this Project
Can be closed, found the error by myself
It would be helpful if you explained to others how you solved it.
The Error was in the Constructor of my Core Class.
For an Example:
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
It was an Runtime Error I think.
|All times are GMT. The time now is 01:57 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0