Fatal error: Cannot instantiate non-existent class: sqlselect in /path/to/my/php/scripts/here/authme.php on line 5
Now im using an odd methodology in how im constructing my application, however this is the first time I have run into this problem.
My design is as follows;
index.php
Includes:
require('config.ini');
require($IncludePath.'sessionheader.php');
require($IncludePath.'html_header.php');
require($IncludePath.'classes.php');
|->require('layout_page.php');
| require($IncludePath.'html_footer');
|
| from the layout_page.php: (I will only include relevent info here)
| Includes:
|->include($ModulesPath.'accounts/authme.php');
Now if I use a class_exists() on the index.php after classes declaration I get an "OK!" , if I use classes_exists() on the layout_page.php include i get an "OK!", however if I use it on the authme.php include off the layout_page.php I get a FAIL!
Is there a maximum depth that declarations will carry over? I would not think so considerng the includes take effect before proccessing of the page occures....
Oh and yes, I have set the require() on index.php so i /know/ its finding the classes.php
help me? thanks