RE: [SMARTY] switch substitute

From: Date: Sun, 06 Oct 2002 12:59:16 +0000
Subject: RE: [SMARTY] switch substitute
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6098@lists.php.net to get a copy of this message
I should say RTFM, but when you specify a smarty variable, even the special $smarty.get variable, inside of another template function (like include), you just drop the delimiters ({}), so it would be: {include file=$smarty.get.var} You really should read through the docs before you ask questions, this is stressed over and over there. :) -- Josh -----Original Message----- From: Eskil Kvalnes [mailto:eskil@uten.net] Sent: Saturday, October 05, 2002 9:05 PM To: Smarty Mailing List Subject: [SMARTY] switch substitute Is it possible to do: {include file={$smarty.get.var}}? Or is there any other way of using switch() with templates? --------------- Sincerely, Eskil Kvalnes eskil@uten.net -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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