Re: embedd PHP-Code in a template

From: Date: Sun, 03 Mar 2002 13:55:23 +0000
Subject: Re: embedd PHP-Code in a template
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2922@lists.php.net to get a copy of this message
> Isn't it possible to embedd some PHP-Code in a template-file? > The following code works fine, but "HALLO" will not be shown!! > <? > echo "HALLO;"; > ?> In most cases you can embed code with more elegant ways, like insert functions, but if you want to embed PHP this way, use the <?php start element, as <? may be turned off by some servers, and set $php_handling in Smarty to SMARTY_PHP_ALLOW. Even better use {php} echo "HALLO;"; {/php} Goba

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