Hello All!

So I am making the control panel to a projct for college, the control panel uses many classes...

php Code:
  1. include ('./includes/vt_admin/vt_class/admin.php');
  2. $admin = new Admin($_SESSION['webmaster']);
  3. include ('./includes/vt_admin/vt_class/log.php');
  4. $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...