Форуми / Cotonti / Support / PHP code in .tpl

how to insert php code into tpl files

duck101
#35024 27.07.2012 16:55

Hello, I tried to insert a php code into a tpl file, and for some reason not all of the code would display right. I've heard that php in tpl files is a big no,no. I then tried another option-- <script src="form.php"></script> to no avail.  Is there another way to call up a php file from a tpl file?