Settings

From: Date: Fri, 13 Jun 2003 15:43:11 +0000
Subject: Settings
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1578@lists.php.net to get a copy of this message
Monte Ohrt wrote:
Am I correct in assuming that the images need to be placed in the DOCROOT, and the path to these set somewhere? (This affects the installation procedure of Smarty.) Monte
Hi Monte, Yes you're right: the whole folder *debug* must be placed in/under the DOCROOT. I think there's no better way, because we load debug.html directly in a browser window, and it must load js libraries and images. So all of them must be loadable using HTTP. Settings are not so easy for now. That's because I'd to patch Smarty.class.php and I didn't want to introduce too much modifications. I need your help in deciding which could be the best way. I developed the new console using a SMARTY_DIR under the DOCROOT. In this situation and at the moment we have: - Smarty.class.php: As described in the file info.txt contained in the debug.zip at line 1237 we set how to reach debug.tpl $this->debug_tpl = 'file:'.SMARTY_DIR.'debug/debug.tpl'; - debug.tpl line 5 we set how to reach debug.html
	$debug_file      = SMARTY_DIR."debug/debug.html";
line 75 we tell treeview how to reach the images - path relative to debug.html - TW_ICONPATH = 'img/'; Note: At the moment I assume that js libraries are kept in the same level of debug.html, and so there's no way to set a path to reach them. I thought that the best way could be to introduce a new Smarty var in the *Smarty Configuration Section* with the same meaning of *template_dir* for example.
var $debug_dir       =  'debug';
Hope this could help, Luca

« previous php.smarty.dev (#1578) next »