| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
PHP Templates from a Smarty Template | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I'm not sure if this topic goes in the Program Logic forum or this one, but here goes... My question has to do with smarty templating. It seems that once you dive into a smarty template, php goes away entirely. For instance, lets say I have a main page that calls a smarty template that, in turn, calls another php page: main page.php |_ smarty page.tpl ......|_php page.php In this example, the 'php page' is interpreted as a smarty template, not a php page. Yes, I know I can adapt my php page to smarty, but for reasons too numerous to go into here--but mostly for code maintenance issues and ease of integration with Dreamweaver--I want to keep my code in php templates rather than smarty templates. So, my question is this: Is there any way to include a php page from a smarty template page and have it be interpreted as php rather than smarty code? Many thanks, Steve
__________________
Steve Stringer Dallas, Texas, USA http://www.stringersites.com X-Cart Version 4.0.13 |
|||||||
#2
|
|||||||
|
|||||||
![]() Found the answer: instead of
Code:
Code:
Pretty simple.
__________________
Steve Stringer Dallas, Texas, USA http://www.stringersites.com X-Cart Version 4.0.13 |
|||||||
|
|||
X-Cart forums © 2001-2020
|