All messages, emails, and receipts that my system sends are stored in a database table. This way, system administrators are able to customize these messages without having to interact with programmers.
Therefore, I need generic placeholders. I could write a hundred substr (), for each message type needs different variables (lost password email needs user info, project submission receipt needs project data, and there you go) That's why I wanted to perform var subst in a variable contents.I don't need code evaluation (bad practice, as pointed outra). Dfcp On Sep 14, 9:49 pm, "euromark (munich)" <dereurom...@googlemail.com> wrote: > thats what bbcode, placeholders etc. and sprintf(), replace functions > etc. are for > > On 14 Sep., 20:11, brian <bally.z...@gmail.com> wrote: > > > On Mon, Sep 14, 2009 at 8:06 AM, djogo <djogopat...@gmail.com> wrote: > > > > That's exactly the point, I want it to be in a database column, and > > > allow the end-user to edit it. Therefore, $test would keep a HTML/RTF > > > document with tags <?=?>. > > > > I want to get it, perform variable substitution, and then e-mail it, > > > or save it in another database column, but I just don't want to > > > display it. > > > What do you mean by "allow the end-user to edit it"? What, exactly, > > are you trying to do? There's surely a better way, whatever it is. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---