I have a switch in the index.php file. When there is a value in the $_GET['page'] and it matches the switch it includes a page, for example: www.website.com/index.php?page=home. So basically you'll always be in the index.php file.Above the switch I am calling the classes, but is there a better way? Should I call a new class within the pages? What is the best practice to call new classes?$user = new \Project\classes\User();$redirect = new \Project\classes\Redirect();$validate = new \Project\classes\Validation();$postData = new \Project\classes\Get();$group = new \Project\classes\Group();$session = new \Project\classes\Session();$login = new \Project\classes\Login();$unit = new \Project\classes\Unit();$laboratory = new \Project\classes\Laboratory();$ctgCode = new \Project\classes\Ctgcode();$method = new \Project\classes\Method();$material = new \Project\classes\Material();$shipping = new \Project\classes\Shipping();$labtest = new \Project\classes\Labtest();$database = new \Project\classes\Database();require_once HTML_HEADER;if (array_key_exists('page', $_GET)) {    switch ($_GET['page']) {        case home:            require_once HTML_HOME;            break;        case test_toevoegen:            require_once HTML_FORM;            break;        case login:            require_once HTML_LOGIN;            break;        case logout:            require_once HTML_LOGOUT;            break;        case register:            require_once HTML_REGISTER;            break;        default:            require_once HTML_HOME;            break;    }}require_once HTML_FOOTER;
Calling new classes
php