|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
heohni Smarty Regular
Joined: 20 Sep 2006 Posts: 40
|
Posted: Wed Nov 21, 2007 10:02 am Post subject: SmartyML Question |
|
|
Hi,
does anyone has a solution to use SmatyML Varibales inside a php file/part which doesn't get parsed by a template? Like this:
Code: | $headers=array(
'From' => ADMINMAIL,
'To' => ADMINMAIL,
'Subject' => '##NG_EMAIL_ORDER_00##'.date("d.m.Y").' ##NG_EMAIL_ORDER_01##'. $auftrag
); |
I'm using this to send later an email with the pear:mail() function.
Looking forward for an answer as this matter drives me nuts |
|
Back to top |
|
heohni Smarty Regular
Joined: 20 Sep 2006 Posts: 40
|
Posted: Mon Dec 17, 2007 2:39 pm Post subject: |
|
|
No ideas? Nobody? |
|
Back to top |
|
heohni Smarty Regular
Joined: 20 Sep 2006 Posts: 40
|
Posted: Wed Jan 23, 2008 12:32 pm Post subject: |
|
|
This is till very urgent for me!
Any ideas, how I can solve this problem?
Or in other words, how can I make SmartyML placeholders working inside the php document? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Jan 23, 2008 1:56 pm Post subject: |
|
|
You can access smarty variables from PHP with $smarty->get_template_vars('foo')
Is that what you needed? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|