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

adding info to the smarty debug template

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
jpabian
Smarty Rookie


Joined: 17 Apr 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 6:45 pm    Post subject: adding info to the smarty debug template Reply with quote

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
View user's profile Send private message
jpabian
Smarty Rookie


Joined: 17 Apr 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 7:48 pm    Post subject: possible solution Reply with quote

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
View user's profile Send private message
jpabian
Smarty Rookie


Joined: 17 Apr 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 8:29 pm    Post subject: Reply with quote

that does not work..

{assign_debug_info} plugin is closer to home

in the debug.tpl
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP