protected function _emulateController($module, $action = 'index') { $app = new \core\BackendApplication(); $emulatedController = $app->buildController($module, $action); return $emulatedController; }
<?php if (!ini_get('display_errors')) { ini_set('display_errors', '1'); } date_default_timezone_set('Europe/Paris'); require '../core/autoload.php'; $app = new core\BackendApplication(); $app->render();