Decorator Plugin

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
Forum Newbie
Posts: 1
Joined: Thu Mar 17, 2011 11:28 am

Decorator Plugin

Post by jimi »

Is it possible to have the decorator plugin act in a recursive manner? Say for instance I have the replacement {username} => $user->info->username the first instance of {username} in my text is replaced with the data, the second or subsequent instances of the replacement tag is not, it simply says the words {username}.

Could it be the fact that I have HTML surrounding the replacement text? IE: <b>{username}</b> ?

Edit: I just realized what is causing it. I have a box {signature} => $signature_code, and the variables within the string $signature_code are not being replaced. Is this possible using the decorator plugin?
Post Reply