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)
-   -   Executing PHP scripts in Smarty Templates (https://forum.x-cart.com/showthread.php?t=19996)

upgrade 02-18-2006 01:30 AM

Executing PHP scripts in Smarty Templates
 
Hello,

Is there a way to execute PHP Scripts inside a Smarty Template page? I want to manipulate the way the part code in the order_info.tpl is displayed, by using PHP's string functions.

geckoday 02-18-2006 05:42 AM

Several of the PHP string functions are implemented in Smarty as modifiers. Also, all PHP functions can be executed in a Smarty template as modifiers so even the ones that aren't specifically included in Smarty can be used. See:

http://smarty.php.net/manual/en/language.modifiers.php

upgrade 02-18-2006 03:42 PM

Thanks for the link!


All times are GMT -8. The time now is 10:12 AM.

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