I have a php file that has some local and global variables (e.g. $foo)
an smarty object is called from this file.
How can I access $foo from smarty script without changing PHP file?
Thanks
If you have a constant variable called BASE, and defined like this:
define('BASE', 'Boise');
you can access the variable in smarty the following way:
$smarty.const.BASE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With