January 25, 201115 yr Hello, Ive got a 3 level file system as shown below:- - index.php // Main Index File, That includes essential classes (Also includes a class called db which is static) - db.class.php //Static Class, Contains DB functions. (MYSQLI) - navigation.class.php // Normal Class, NOT Static, Includes pages requested by the URL. - login.view.php //Normal PHP file, No functions. Just HTML being included by navigation.class.php The class DB is static db:: and so are the functions inside, all made public, Its fully functional on the first and second and 3rd level down, but when i call the static class in login.view.php im getting: Fatal error: Class 'db' not found in E:\Dropbox\core\global_view\login.view.php on line 26 Any ideas? Edited January 25, 201115 yr by Shaun Childerley
January 25, 201115 yr Author Hello, Ive got a 3 level file system as shown below:- - index.php // Main Index File, That includes essential classes (Also includes a class called db which is static) - db.class.php //Static Class, Contains DB functions. (MYSQLI) - navigation.class.php // Normal Class, NOT Static, Includes pages requested by the URL. - login.view.php //Normal PHP file, No functions. Just HTML being included by navigation.class.php The class DB is static db:: and so are the functions inside, all made public, Its fully functional on the first and second and 3rd level down, but when i call the static class in login.view.php im getting: Fatal error: Class 'db' not found in E:\Dropbox\core\global_view\login.view.php on line 26 Any ideas? Solved, I was using ajax to get the php file directly, ofcourse this ment no classes was included into login.view.php from index.php.
Create an account or sign in to comment