![]() |
php code, direcly into template?
How should i do if i wanted some php code direcly into my template
Code:
<?php i want that under the copyright on all my pages, and also other debug code... but when i try and input as it is now in copyright.tpl it dun't work as i want it to =) |
Create another php file called myscript.php for example, then insert into the TPL file where you want to see it the following:
{include_php file="myscript.php"} That worked for me for a news system, a random image (not related to xcart) and a random quote system. :wink: |
|
ah ok, thx...
|
http://smarty.php.net/manual/en/variable.php.handling.php
That was a much better url :) now it works... all i had to do was change <?php and ?> into {php} and {/php} very easy =) |
All times are GMT -8. The time now is 06:35 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.