Re: [SMARTY] How to use a template in a PHP variable instead saved in a file?

From: Date: Sun, 08 Dec 2002 15:52:44 +0000
Subject: Re: [SMARTY] How to use a template in a PHP variable instead saved in a file?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6690@lists.php.net to get a copy of this message
in your PHP, do something like this, to store your PHP-variable, $template, in a Smarty variable: $smarty->assign("template",$template); // You do this before calling display() of course. And then in your template, you just do this: {include file=$template} should be all? :) --- At 2002-12-08, 16:46:00, DeBo <rgr0402NOSPAM@gmx.net> wrote: >To include a template in a file i have to write > { include file="mytemp1.tpl" } > >How can I use a template which is stored in a PHP variable? > >Debo > > > > > > > > >-- >Smarty General Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#6690) next »