neonwired Posted July 16, 2019 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')
Zeka Posted July 17, 2019 Posted July 17, 2019 @neonwired Have you tried to use $files->render() instead?
neonwired Posted July 30, 2019 Author 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?
Zeka Posted July 30, 2019 Posted July 30, 2019 @neonwired https://processwire.com/api/ref/wire-file-tools/render/
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