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

Email Debug Window Output

 
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 -> Plugins
View previous topic :: View next topic  
Author Message
jphollan1234
Smarty n00b


Joined: 27 Apr 2004
Posts: 2

PostPosted: Tue Apr 27, 2004 5:48 pm    Post subject: Email Debug Window Output Reply with quote

Hello,

I'm new to smarty, but already find it one of the most valuable tools I have ever seen for web developing! Thanks for the good work!

I'd like to find out is someone has written a plugin to email the debug window output? If I were to write this, should it be a function, output filter, pre or post filter? I'm not exactly sure which plugin model to use.

I have a web based db application, and I would like to email the debug window output when there is a db query problem. Would help me track down some of the template problems. However, the debug window is not shown at the client site. Is this even possible?? I already have it emailing me some of the php session information, among other things, but the smarty debug window would be icing on the cake and definately help troubleshoot further. Thanks

Jason
Back to top
View user's profile Send private message Send e-mail
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Tue Apr 27, 2004 6:56 pm    Post subject: Reply with quote

you can configure smarty to use your own custom-tpl, simply set $smarty->debug_tpl.

write your own template that mails itself. you can use {capture} to get the contents into a variable instead of beging dumped on the screen.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jphollan1234
Smarty n00b


Joined: 27 Apr 2004
Posts: 2

PostPosted: Tue Apr 27, 2004 7:10 pm    Post subject: Reply with quote

ok, that might actually work. I see there is a {debug} function also that I might can use to dump the debug output to a temporary template and then mail that. Thanks
Back to top
View user's profile Send private message Send e-mail
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 -> Plugins 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