1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/controller] Check for proper status codes from controllers

PHPBB3-10864
This commit is contained in:
David King
2012-11-19 12:37:20 -05:00
parent 3004350281
commit f8614bfc84
5 changed files with 29 additions and 9 deletions

View File

@@ -9,3 +9,7 @@ foo_baz_controller:
foo_template_controller:
pattern: /foo/template
defaults: { _controller: foo_bar.controller:template }
foo_exception_controller:
pattern: /foo/foo_exception
defaults: { _controller: foo_bar.controller:exception }

View File

@@ -27,4 +27,9 @@ class phpbb_ext_foo_bar_controller
return $this->helper->render('foo_bar_body.html');
}
public function exception()
{
throw new phpbb_controller_exception('Exception thrown from foo/exception route');
}
}