RE: [SMARTY] config absolute paths for windows
| From: | SP | Date: | Mon, 17 Jun 2002 07:57:10 +0000 |
| Subject: | RE: [SMARTY] config absolute paths for windows | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4889@lists.php.net to get a copy of this message | ||
Forget it I solved it by using $DOCUMENT_ROOT
$smarty = new Smarty;
$smarty->template_dir = "$DOCUMENT_ROOT/cms/smarty/templates";
$smarty->compile_dir = "$DOCUMENT_ROOT/cms/smarty/templates_c";
$smarty->config_dir = "$DOCUMENT_ROOT/cms/smarty/configs";
-----Original Message-----
From: SP [mailto:internetracer@yifan.net]
Sent: June 17, 2002 3:06 AM
To: smarty-general@lists.php.net
Subject: [SMARTY] config absolute paths for windows
i have smarty 2.1.1 on windows98. does anyone know how to config absolute
paths on windows server. i want to set it up with this absolute path but
it's not working:
C:\Program Files\Apache Group\Apache\htdocs\cms\Smarty-2.1.1
i also tried with this but it's not working:
http://127.0.0.1/cms/Smarty-2.1.1
this works below:
$smarty = new Smarty;
$smarty->template_dir = "../../../htdocs/cms/Smarty-2.1.1/templates";
$smarty->compile_dir = "../../../htdocs/cms/Smarty-2.1.1/templates_c";
$smarty->config_dir = "../../../htdocs/cms/Smarty-2.1.1/configs";
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php