aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/fixtures/ext/foobar/controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/fixtures/ext/foobar/controller.php')
-rw-r--r--tests/functional/fixtures/ext/foobar/controller.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/functional/fixtures/ext/foobar/controller.php b/tests/functional/fixtures/ext/foobar/controller.php
new file mode 100644
index 0000000000..bf8d8139ae
--- /dev/null
+++ b/tests/functional/fixtures/ext/foobar/controller.php
@@ -0,0 +1,17 @@
+<?php
+
+class phpbb_ext_foobar_controller implements phpbb_extension_controller_interface
+{
+ public function handle()
+ {
+ global $template;
+ $template->set_ext_dir_prefix($phpbb_root_path . 'ext/foobar/');
+
+ $template->set_filenames(array(
+ 'body' => 'foobar_body.html'
+ ));
+
+ page_header('Test extension');
+ page_footer();
+ }
+}