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)
-   -   can't include php (https://forum.x-cart.com/showthread.php?t=50633)

TechRestore 11-10-2009 11:41 PM

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.

Jon 11-13-2009 09:13 AM

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

{php}include "/path/to/php/file";{/php}


All times are GMT -8. The time now is 07:03 AM.

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