Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 1 match
Smarty Forum Index
Author Message
  Topic: find variables required to render a given template
flowtron

Replies: 0
Views: 22112

PostForum: Tips and Tricks   Posted: Thu May 24, 2012 1:35 pm   Subject: find variables required to render a given template
If you find the need to establish a list of variables used inside a template I found this way to get at one:

$node = $smarty->createTemplate( "whatever.tpl" );
$code = $node-& ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP