ci4

Форк
0
/
Paths.php 
80 строк · 2.8 Кб
1
<?php
2

3
namespace Config;
4

5
/**
6
 * Paths
7
 *
8
 * Holds the paths that are used by the system to
9
 * locate the main directories, app, system, etc.
10
 *
11
 * Modifying these allows you to restructure your application,
12
 * share a system folder between multiple applications, and more.
13
 *
14
 * All paths are relative to the project's root folder.
15
 *
16
 * NOTE: This class is required prior to Autoloader instantiation,
17
 *       and does not extend BaseConfig.
18
 *
19
 * @immutable
20
 */
21
class Paths
22
{
23
    /**
24
     * ---------------------------------------------------------------
25
     * SYSTEM FOLDER NAME
26
     * ---------------------------------------------------------------
27
     *
28
     * This must contain the name of your "system" folder. Include
29
     * the path if the folder is not in the same directory as this file.
30
     */
31
    public string $systemDirectory = __DIR__ . '/../../system';
32

33
    /**
34
     * ---------------------------------------------------------------
35
     * APPLICATION FOLDER NAME
36
     * ---------------------------------------------------------------
37
     *
38
     * If you want this front controller to use a different "app"
39
     * folder than the default one you can set its name here. The folder
40
     * can also be renamed or relocated anywhere on your server. If
41
     * you do, use a full server path.
42
     *
43
     * @see http://codeigniter.com/user_guide/general/managing_apps.html
44
     */
45
    public string $appDirectory = __DIR__ . '/..';
46

47
    /**
48
     * ---------------------------------------------------------------
49
     * WRITABLE DIRECTORY NAME
50
     * ---------------------------------------------------------------
51
     *
52
     * This variable must contain the name of your "writable" directory.
53
     * The writable directory allows you to group all directories that
54
     * need write permission to a single place that can be tucked away
55
     * for maximum security, keeping it out of the app and/or
56
     * system directories.
57
     */
58
    public string $writableDirectory = __DIR__ . '/../../writable';
59

60
    /**
61
     * ---------------------------------------------------------------
62
     * TESTS DIRECTORY NAME
63
     * ---------------------------------------------------------------
64
     *
65
     * This variable must contain the name of your "tests" directory.
66
     */
67
    public string $testsDirectory = __DIR__ . '/../../tests';
68

69
    /**
70
     * ---------------------------------------------------------------
71
     * VIEW DIRECTORY NAME
72
     * ---------------------------------------------------------------
73
     *
74
     * This variable must contain the name of the directory that
75
     * contains the view files used by your application. By
76
     * default this is in `app/Views`. This value
77
     * is used when no value is provided to `Services::renderer()`.
78
     */
79
    public string $viewDirectory = __DIR__ . '/../Views';
80
}
81

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.