Bas
Bas

Reputation: 37

Smarty {php} in TPL gives blank page

I am new at smarty and i am trying to put some php code into a TPL

Example:

{php}echo 'test';{/php}

But no i am getting a blank page. Is it possible to enable {php} and how? Thanks!

Upvotes: 0

Views: 510

Answers (1)

Joel Hinz
Joel Hinz

Reputation: 25414

It's been deprecated. From the documentation:

"As of Smarty 3.1 the {php} tags are only available from SmartyBC."

Source: http://www.smarty.net/docs/en/language.function.php.tpl

Upvotes: 2

Related Questions