template variable and text
| From: | philippe dot morange at ca-indosuez dot com | Date: | Thu, 09 Jan 2003 10:36:12 +0000 |
| Subject: | template variable and text | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7076@lists.php.net to get a copy of this message | ||
Hi,
I'd like to know how I could make a single string composed of a template variable and some text
in
HTML...
The usual way would be to simply stick them together: {$myvar}mytext
The problem is I already am in brackets when I do that:
In a php file:
// I use this link all over my site...
$base_link = '/some_path/';
In my template:
{popup_init src="$base_link**overlib.js"}
what do I replace the ** with, in order to have a proper path?
If I do $base_link.overlib.js, Smarty will think I'm using an array.
If I create a variable in the php file called $overlib_path, well I don't like that because
it's not
a clean way to do it.