Jump to content

TemplateFile.php - get filename in a hook?


Gazley
 Share

Recommended Posts

Hi there,

I'm hooking TemplateFile::render like so:

$this->addHookAfter('TemplateFile::render', $this, 'hookRender');

In hookRender, I really need to know the filename that the template is based on. This is stored as a protected class field called 'filename' but with no getter available. Any ideas how to gain access to the filename in the circumstances I have described?

Many thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...