-4

please give some note about php functions using with smarty template

user516957
  • 67
  • 2
  • 7
  • 2
    If someone votes down the question/ can they say why. Mate sort your question out, it dont make any sense. – brumScouse Dec 08 '10 at 08:17
  • Are you asking if you can call PHP functions from within Smarty templates? – Matthew Dec 08 '10 at 08:18
  • Maybe he's not that familiar with the english language - so not blaming here. I guess he wants to know, if he can use php-functions within smarty templates. The answer would be yes. – Fidi Dec 08 '10 at 08:20
  • yeah ... exactly .. wanna to know about that.. if u can .. plz help me.. – user516957 Dec 08 '10 at 08:20

2 Answers2

2

Smarty does allow you to call PHP functions, but it's assumed that you shouldn't need to and so it's not as easy as it could be. The general philosophy of Smarty is that you should avoid tying your templates too closely to your application code (i.e. the PHP), as this would make Smarty itself somewhat redundant.

This thread may be of use:

http://www.smarty.net/forums/viewtopic.php?p=46985

Will Vousden
  • 32,488
  • 9
  • 84
  • 95
0

Yes, the smarty template engine does work with PHP. If you wish to have a look at a tutorial have a look at the smarty website.

Thariama
  • 50,002
  • 13
  • 138
  • 166