public function execute() { if ($this->argument === NULL) { $this->controller->{$this->action}(); } else { $this->controller->{$this->action}($this->argument); } // TODO: check for non-default template $template = DEFAULT_TEMPLATE; $view = new AppView($this->page, $template); $view->show_view_with_context_variables($this->controller->getModelViewContext()); }