I am working on a program with a Smarty template, where do the $variables come from as I see no file they are pulling from in the html. Where do I find these variables so I can edit them. Similarly in Drupal, there are different variables available in different TPL files, because I see no includes, where is this information coming from/being pulled from, I know this is a noob question.
3 Answers
Smarty variables are set in the business logic via $smarty->assign('firstName', 'Mike');
http://www.smarty.net/docsv2/en/api.assign
You can check out the Smarty.class.php source to find out where they are actually stored (they're in a member variable named $tpl_vars).