neonwired Posted July 16, 2019 Share Posted July 16, 2019 I'm using the page renderer to compile html emails as below. The problem is aoim hooks Page::render which causes an error. Is there any way to render a page without calling any hooks? $page->render('emails/base.php', (array) $data), 'subject' => $page->get('subject|title') Link to comment Share on other sites More sharing options...
Zeka Posted July 17, 2019 Share Posted July 17, 2019 @neonwired Have you tried to use $files->render() instead? Link to comment Share on other sites More sharing options...
neonwired Posted July 30, 2019 Author Share Posted July 30, 2019 On 7/17/2019 at 1:54 AM, Zeka said: @neonwired Have you tried to use $files->render() instead? How does that work? Any docs? Link to comment Share on other sites More sharing options...
Zeka Posted July 30, 2019 Share Posted July 30, 2019 @neonwired https://processwire.com/api/ref/wire-file-tools/render/ Link to comment Share on other sites More sharing options...
neonwired Posted July 30, 2019 Author Share Posted July 30, 2019 Many Thanks Link to comment Share on other sites More sharing options...
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