Как Вы смотрите на такую реализацию?
<?php
class ControllerModuleNoticeupSeo extends Controller
{
function __call($name, $arguments)
{
$this->control('extension/module/noticeup_seo');
if (method_exists(ControllerExtensionModuleNoticeupSeo::class, $name)) {
$this->controller_extension_module_noticeup_seo->{$name}($this->registry);
}
}
public function control($cont) {
$file = DIR_APPLICATION . 'controller/' . $cont . '.php';
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $cont);
if (file_exists($file)) {
include_once($file);
$this->registry->set('controller_' . str_replace('/', '_', $cont), new $class($this->registry));
} else {
trigger_error('Error: Could not load controller ' . $cont . '!');
exit();
}
}
}