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

can't include php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-10-2009, 11:41 PM
 
TechRestore TechRestore is offline
 

Newbie
  
Join Date: Jan 2005
Posts: 6
 

Default can't include php

Hi guys, I've researched how to include php files in the smarty template ({include_php file="/path/to/php/file"}) but it's not including it, almost as if it's not even there. I'm using the path from the logs. Is there anything in the PHP file that could break the smarty? It parses normally if I run it alone.. it's just the one php file with no includes or dependencies.

Thanks.
__________________
TechRestore
X-Cart Gold 4.0.3
Linux
http://techrestore.com
Reply With Quote
  #2  
Old 11-13-2009, 09:13 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: can't include php

This isn't typically good practice but you can do:

{php}include "/path/to/php/file";{/php}
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 11:35 AM.

   

 
X-Cart forums © 2001-2020