SV: [SMARTY] how to make debug through url?

From: Date: Fri, 21 Mar 2003 13:10:10 +0000
Subject: SV: [SMARTY] how to make debug through url?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8808@lists.php.net to get a copy of this message
> Fra: Thorsten Schmidt [mailto:schmidt@erodata.de] > > Is it possible to trigger debug on through url like > > www.myhome.com/page.php?debug=on > > > > <?php > > require 'Smarty.class.php'; > > $smarty = new Smarty(); > > if(!empty($_REQUEST['debug']) && $_REQUEST['debug'] == > 'on') { > $smarty->debugging = true; > } > else { > $smarty->debugging = false; > } > > ?> > > (Not tested, but I think this should work) Smarty has that feature, you don't need to reinvent it. http://smarty.php.net/manual/en/chapter.debugging.console.php Paolo

« previous php.smarty.general (#8808) next »