detect hostname in template

useb

Joined: 2006-04-06
Posts: 4
Posted: Sun, 2006-10-08 09:08

sorry,
is it possible to detect the hostname in theme.tpl file?
can´t find a solution for the problem in the forum.
thanks, useb.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2006-10-09 04:07

do you know the php code that would get the hostname? if so,

{capture assign="hostname"}{php}print ......;{/php}{/capture}
{$hostname}
 
useb

Joined: 2006-04-06
Posts: 4
Posted: Mon, 2006-10-09 07:04

thanks,
my php is o.k., but that smarty thing...