|
Hi, i want to use CakeEmail library to send email in some occasions.
The issue i have is that i need to load the view template and layout from a field in DB and not from a file (this is because each user on my system can personalize email templates and layour), and also i have ###TEXT### on the templates that need to be replace. What is the best way to approach this goal? I know i have to do my own code for this, but can someone on list please guide me? how "should" i do this? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Hi, I can publish my component somewhere if you think it'll help. Thaissa.
-- On Sun, Jan 8, 2012 at 6:05 PM, Arnold <[hidden email]> wrote: Hi, i want to use CakeEmail library to send email in some occasions. Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
In reply to this post by Arnold Roa
create layout for email and put into: <?php print $content_for_layout; ?>
Then, create an element for email with content: <?php print $content; ?>
and in you code, retrieve layout code from database, replace what you need and this content set to this element :) it will print just what you set :)
Understand ? :)
-- -- Lep pozdrav, Tilen Majerle 2012/1/8 Arnold <[hidden email]> Hi, i want to use CakeEmail library to send email in some occasions. Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
In reply to this post by Thaissa Mendes
Or github gist. - S On 8 Jan 2012 20:42, "Thaissa Mendes" <[hidden email]> wrote:
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
http://bin.cakephp.org/view/1119637582
On Sun, Jan 8, 2012 at 9:59 PM, Sam Sherlock <[hidden email]> wrote:
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
| Powered by Nabble | Edit this page |
