-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.php
More file actions
32 lines (28 loc) · 1.06 KB
/
Config.php
File metadata and controls
32 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
class Config {
/**
* корневой URL веб-приложения, НЕ ДОМЕН
* f.e. домен foo.com, приложение лежит в папке bar
* то указать нужно именно полный веб-путь к приложению, а именно
* 'http://foo.com/bar'
* БЕЗ СЛЕША В КОНЦЕ
* @var string
*/
public static $project_url = 'http://wp-ocl.com/test2';
/**
* Путь к фреймворку. По умолчанию он лежит в корне приложения в папке _ad2fw
* Нужен для загрузки общих CSS, JS - bootstrap или jquery например
* @return string
*/
public static function fw_url(){
return self::$project_url . '/_ad2fw';
}
/**
* Параметры соединения с БД
* @var string
*/
public static $db_host = 'localhost';
public static $db_name = 'test2';
public static $db_user = 'konst20';
public static $db_pass = 'rbzirj25';
}