Re: PHPizabi - Applying php in TPL (smarty template engine)
| From: | Virgilio Quilario | Date: | Thu, 26 Mar 2009 16:34:27 +0000 |
| Subject: | Re: PHPizabi - Applying php in TPL (smarty template engine) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290707@lists.php.net to get a copy of this message | ||
> Hi there!
> Any know how Can I use PHP code into Smarty Temple Engine (TPL files) ?
> I usued {php} include("text.php"); {/php} but the code don't run simply
> output the code.
> What's the problem? Wht don't run?
>
> Thankx,
> Luciano Felli
it may be the file path.
try echoing something before the include and see if it shows.
here is a collection of smarty tips and techniques
http://www.jampmark.com/php-programming/16-very-useful-smarty-scripting-tips-and-techniques-to-make-templates-smarter.html
hope you find it useful.
good luck.
virgil