Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
Constants {#smarty.constants}
2
=========
3
 
4
SMARTY\_DIR {#constant.smarty.dir}
5
===========
6
 
7
This is the **full system path** to the location of the Smarty class
8
files. If this is not defined in your script, then Smarty will attempt
9
to determine the appropriate value automatically. If defined, the path
10
**must end with a trailing slash/**.
11
 
12
 
13
    <?php
14
    // set path to Smarty directory *nix style
15
    define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/');
16
 
17
    // path to Smarty windows style
18
    define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/');
19
 
20
    // include the smarty class, note 'S' is upper case
21
    require_once(SMARTY_DIR . 'Smarty.class.php');
22
    ?>
23
 
24
 
25
 
26
See also [`$smarty.const`](../designers/language-variables/language-variables-smarty.md).