public function __construct() { $URL = new BackendURL(); new BackendTemplate(); new BackendNavigation(); new BackendHeader(); $action = new BackendAction($URL->getAction(), $URL->getModule()); $action->execute(); }
/** * Default constructor * * @return void */ public function __construct() { // create URL-object to handle the URL $URL = new BackendURL(); // create new template so we have a reference that will be available on every module/action new BackendTemplate(); // create a navigation object new BackendNavigation(); // create a header-object new BackendHeader(); // create a new action $action = new BackendAction($URL->getAction(), $URL->getModule()); // execute the action $action->execute(); }