Trying to dynamically load a class:
require_once(PATH_MODULES."/{$module}/{$module}_admin.php");
$admin_class = $module."Admin";
return $admin_class::get_admin($module);
Produces this error on older versions of PHP:
Parse error: syntax error, unexpected
T_PAAMAYIM_NEKUDOTAYIM in
/home/user/public_html/folder/path/admin/filename.php on line 91
How can I change this code to work for older versions of PHP?
Answer was pretty simple: