I searched google, but coulding find anything. Checked the documentation too...
I thought Smarty allowed PHP to be written inside the template itself if you escaped the template engine?
I searched google, but coulding find anything. Checked the documentation too...
I thought Smarty allowed PHP to be written inside the template itself if you escaped the template engine?
There is the ability to write PHP code inside {php} tags, but you have to turn this on with a smarty config setting.
you can also use
include_php
if you really have to. But It's not the best solution (the function is pretty much deprecated)