Define("SMARTY_DIR")

From: Date: Thu, 13 Feb 2003 19:38:19 +0000
Subject: Define("SMARTY_DIR")
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7742@lists.php.net to get a copy of this message
Hi there, Another suggestion: Defining SMARTY_DIR could be made automatically: //~ some code to add in Smarty.class.php if(!defined("SMARTY_DIR")) { //~ SMARTY_DIR is not yet defined, so define it define("SMARTY_DIR",basename(__FILE__)."/"); } Now SMARTY_DIR would be defined to the path where Smarty.class.php resides in if not defined. Does something object against that? Greets, Joscha

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