|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jpabian Smarty Rookie
Joined: 17 Apr 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 6:45 pm Post subject: adding info to the smarty debug template |
|
|
i would like to add some profiling/timing info to the debug template instead of adding it to the production template itself. is there an easy way to do this??
thanks in advance
jsp |
|
Back to top |
|
jpabian Smarty Rookie
Joined: 17 Apr 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 7:48 pm Post subject: possible solution |
|
|
i suppose i could add a set method to Smarty and add an element to the $_smarty_debug_info array.
function addDebug($key,$val){
$this->_smarty_debug_info[$key] = $val;
}
$view->addDebug('profile', $timer->getOutput() ); |
|
Back to top |
|
jpabian Smarty Rookie
Joined: 17 Apr 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 8:29 pm Post subject: |
|
|
that does not work..
{assign_debug_info} plugin is closer to home
in the debug.tpl |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|