I_Love_My_Vans
May 23rd, 2008, 09:20 AM
Hello All!
So I am making the control panel to a projct for college, the control panel uses many classes...
include ('./includes/vt_admin/vt_class/admin.php');
$admin = new Admin($_SESSION['webmaster']);
include ('./includes/vt_admin/vt_class/log.php');
$log = new Log();
But can I access the $admin class from the $log class, do I have to do anything special to the code to allow this?
I ask because at the moment I am trying to access the $admin class form inside a function within the $log class and it returns absolutely nothing.
Any Ideas?
Ask if you need more code to work from...
So I am making the control panel to a projct for college, the control panel uses many classes...
include ('./includes/vt_admin/vt_class/admin.php');
$admin = new Admin($_SESSION['webmaster']);
include ('./includes/vt_admin/vt_class/log.php');
$log = new Log();
But can I access the $admin class from the $log class, do I have to do anything special to the code to allow this?
I ask because at the moment I am trying to access the $admin class form inside a function within the $log class and it returns absolutely nothing.
Any Ideas?
Ask if you need more code to work from...