| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
PHP in Templates | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
PHP in Templates
I just downloaded X-cart gold - very excited about it.
I'm into editing the templates (mainly home.tpl), but can't figure out how to parse php code within them. Every time I add a php snippet I get an error in the display page. I want to include some files, including some with sql queries to a second database. Any help would be appreciated. |
|||||||
#2
|
|||||||
|
|||||||
Eaiest bet is to put this directly within the PHP files themselves.
For the main part of the shop this would be home.php. If you are wanting to assign variable to be able to display in the templates then use: $smarty->assign("variable_that_you_can_use_in_templates",$ php_created_variable);
__________________
ex x-cart guru |
|||||||
|
|||
X-Cart forums © 2001-2020
|