useful pear html template it script (show variables in a template)


/ Published in: PHP
Save to your folder(s)

(Applies to the HTML_Template_IT PEAR package)
Useful script to find all global variables and put them
in a format for an array. $t is the HTML_Template_IT(X) object.


Copy this code and paste it in your HTML
  1. foreach($t->getBlockvariables("__global__") as $v)
  2. echo "\t'$v' \t=> ,\n";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.