| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
can't include php | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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. |
|||||||
#2
|
|||||||||
|
|||||||||
![]() This isn't typically good practice but you can do:
{php}include "/path/to/php/file";{/php} |
|||||||||
|
|||
X-Cart forums © 2001-2020
|