Re: [SMARTY] Define("SMARTY_DIR")
| From: | Monte Ohrt | Date: | Thu, 13 Feb 2003 20:10:50 +0000 |
| Subject: | Re: [SMARTY] Define("SMARTY_DIR") | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7745@lists.php.net to get a copy of this message | ||
Smarty already does this.
Monte
On Thu, 2003-02-13 at 13:38, Joscha Feth wrote:
> 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
--
Monte Ohrt <monte@ispi.net>