Re: PHPizabi - Applying php in TPL (smarty template engine)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You have to change the $php_handling variable in Smarty first before you can use {php}{/php} tags inside your template. The default behavior of Smarty is to ignore or echo your code inside {php}{/php} tags in the template.

Take a look at http://www.smarty.net/manual/en/variable.php.handling.php

-- Jacques Manukyan

Luciano Felli wrote:
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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux