X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding PHP tags into a template (https://forum.x-cart.com/showthread.php?t=3539)

breakerjump 07-09-2003 10:48 PM

Adding PHP tags into a template
 
I know php pretty well, though I am completely new to smarty. I seem to be have problems just doing something as simple as adding a file call into templates (ie: <?php require("path/to/blah.php"); ?>). Is the smarty engine parsing the php incorrectly? It seems as though that the php tag is not functioning as a script, but just as plain text. When I view source on the page that includes this php tag, it shows up as plain text in the source, but is not apparent on the web page itself.

funkydunk 07-09-2003 11:37 PM

The best reference point for you is the smarty web site: http://smarty.php.net/

but the php include function is slightly different to a php script :

{* absolute path, or relative to $trusted_dir *}
{include_php file="/path/to/included_file.php"}


All times are GMT -8. The time now is 09:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.