I have one file called index.php which loads a file called config.php via the include command.
In the config.php file i want to be able to load my php classes that i have developed for my app so that the index.php file could use any of the classes i have created.
<?php // index.php include("config.php"); $securitymanager->proccessLogin();
<?php // config.php // Load Classes ////////////////// include("security.class.php"); // Loads the security manager.
Now if i include the security.class.php into the index file everything works but this way i get an error
Fatal error: Call to a member function databaseConnect() on a non-object in D:\www\LocalUser\callman\index.php
Is there any way i can do what im wanting as it would make my coding life easier if i could use a config file as opposed to including all my classes on every page.