Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding PHP tags into a template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-09-2003, 10:48 PM
 
breakerjump breakerjump is offline
 

Newbie
  
Join Date: Jul 2003
Location: Texas
Posts: 6
 

Default 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.
Reply With Quote
  #2  
Old 07-09-2003, 11:37 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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"}
__________________
ex x-cart guru
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:56 PM.

   

 
X-Cart forums © 2001-2020