| 148 |
lars |
1 |
\$config\_dir {#variable.config.dir}
|
|
|
2 |
=============
|
|
|
3 |
|
|
|
4 |
This is the directory used to store [config files](#config.files) used
|
|
|
5 |
in the templates. Default is `./configs`, meaning that Smarty will look
|
|
|
6 |
for the `configs/` directory in the same directory as the executing php
|
|
|
7 |
script.
|
|
|
8 |
|
|
|
9 |
> **Note**
|
|
|
10 |
>
|
|
|
11 |
> It is not recommended to put this directory under the web server
|
|
|
12 |
> document root.
|
|
|
13 |
|
|
|
14 |
> **Note**
|
|
|
15 |
>
|
|
|
16 |
> As of Smarty 3.1 the attribute \$config\_dir is no longer accessible
|
|
|
17 |
> directly. Use [`getConfigDir()`](#api.get.config.dir),
|
|
|
18 |
> [`setConfigDir()`](#api.set.config.dir) and
|
|
|
19 |
> [`addConfigDir()`](#api.add.config.dir) instead.
|
|
|
20 |
|
|
|
21 |
See also [`getConfigDir()`](#api.get.config.dir),
|
|
|
22 |
[`setConfigDir()`](#api.set.config.dir) and
|
|
|
23 |
[`addConfigDir()`](#api.add.config.dir).
|