Using $smarty inside $smarty
| From: | GXS, FPI) | Date: | Wed, 28 Aug 2002 19:27:49 +0000 |
| Subject: | Using $smarty inside $smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5858@lists.php.net to get a copy of this message | ||
Greetings all,
I'm not sure what I'm missing here, but I have my main Smarty object named
$smarty, and inside one of my templates I have a {php} block with some
external PHP included in it. In this external file, I want to use the main
$smarty object to ->assign and ->fetch a template into $html which will then
be sent off in an email. Using $this->assign does not seem to do the trick
(member function of non-object errors). Is there something I'm missing or
do I need to create a new Smarty object within the template for calling
another template during processing?
I hope that made sense to someone.
TIA,
Tom
--------------------------------------
Tom von Schwerdtner <tvon@gxs.ge.com>
Webmaster, Facilities Plus Inc.
100 Edison Park Drive
Gaithersburg, MD 20878
301-340-5101
--------------------------------------