As it is right now, i have my class system to be embedded in my core class. So i call my classes as such:
$cms->userClass->function();
But this means that for every function i have in my userClass, i constantly need to add:
global $cms;
To be able to access the database class as such:
$cms->db->function();
Is there any way to set a global for the whole class, instead of having to define it at the start of every function?