Just thought I'd make an update here to my above post question.
When calling a template file from PHP (as in my code examples above) consider this:
Template files are searched for two places (and in this order):
phpBB/styles/<style_name>/template/
phpBB/ext/<all_active_extensions>/styles/<style_name>/template/
Knowing this, if you know you only want to load a template file from your own extension, then use your vend_ext prefix like:
Code: Select all
$this->helper->render('@vendor_extension/foo_bar.html', $this->language->lang('FOO_BAR'));
If you want to load a template that could be located anywhere, i.e: in phpBB's prosilver style, or in your own extension, or somebody else's extension, then omit the vend_ext prefix like:
Code: Select all
$this->helper->render('foo_bar.html', $this->language->lang('FOO_BAR'));