need to have the Module Class at parent with the init function ;) $modules = []; // register controllers that can handle templates ;) need to have a render function for this $controllers = [ 'test' => \Modules\TestController::class, //api-controller 'apiMailer' => \Modules\API\APIMailer::class, ];