T_PAAMAYIM_NEKUDOTAYIM PHP Error

Ok so i’ve hit this nasty php error T_PAAMAYIM_NEKUDOTAYIM that sounded like a language from another planet for me (found out that it’s Hebrew for “missing double dots”)

The problem is that with static class functions you can’t do dynamic loading (or at least it didn’t work for me) So while this

    $module = $_GET['module']
    $stuff = new $module();
    $stuff->data;

works, you can’t do

$module::data()

even if the name of the module is the name of the class.