| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Displaying available variables in a template | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi all,
Hope I'm not jumping th gun with this question, but I have searched and couldn't find anything. I'm coming from a PERL background and in PERL there is a function/module called "dumper" that when used in a template context will print out all the key value variable pairs available in that template. This really helps during development. Is there anything like that with the SMARTY template engine? Any help would be great. Many thanks, Mike
__________________
Mike Paler X-Cart Pro 4.0 Swaylock\'s Surfboard Design Forum http://www.swaylocks.com |
|||||||
#2
|
|||||||
|
|||||||
![]() From the smarty site faqs
Q: Is there an instruction to get all vars assigned to a template? (Mattia) A: Yes, using get_template_vars (Oscar Fernandez Sierra): // get all assigned template vars $tpl_vars = $smarty->get_template_vars(); // take a look at them var_dump($tpl_vars);
__________________
Mike Paler X-Cart Pro 4.0 Swaylock\'s Surfboard Design Forum http://www.swaylocks.com |
|||||||
#3
|
|||||||||
|
|||||||||
![]()
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#4
|
|||||||
|
|||||||
![]() Many thanks!!!
![]()
__________________
Mike Paler X-Cart Pro 4.0 Swaylock\'s Surfboard Design Forum http://www.swaylocks.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|