Hi
How would I go about initialising a new Template object, parse a template and return the output as a string within an extension?
The reason I ask is that I’m currently working on a client project that requires a heavily modified member registration process.
The modified registration process needs to send an email, and the client requires the ability to edit the email.
I figured it would be as simple as setting up a new template group with some templates, then just a matter of instantiating a new Template object etc. But I can’t seem to get my head around the issue.
I’ve had a dig around in the core.template.php but can’t really make sense of what’s going on.
Can anyone shed any light on if / how this is possible, or how I might achieve the same functionality via a different method.
Thanks
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.