We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Template class usage

Development and Programming

viewcreative's avatar
viewcreative
116 posts
16 years ago
viewcreative's avatar viewcreative

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

       
viewcreative's avatar
viewcreative
116 posts
16 years ago
viewcreative's avatar viewcreative

Even a “no, this isn’t possible - invest your time and energy elsewhere” would be most appreciated.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.