Gazley Posted July 19, 2016 Posted July 19, 2016 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!
Gazley Posted July 19, 2016 Author Posted July 19, 2016 OMG, it does work! I must have assumed because there was no getter, that I couldn't access it. Thank you very much indeed
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now