| author | ymh <ymh.work@gmail.com> |
| Fri, 29 May 2015 14:57:37 +0200 | |
| changeset 444 | 19f0b7803aed |
| parent 442 | adb907bba956 |
| permissions | -rw-r--r-- |
| 442 | 1 |
<?php |
2 |
||
3 |
$config = [ |
|
4 |
"db" => [ |
|
5 |
"dsn" => "sqlite:".realpath(dirname(__FILE__))."/../data/renkan.sqlite", |
|
6 |
"user" => "dbUser", |
|
7 |
"password" => "pa$$" |
|
|
444
19f0b7803aed
add schema version + dataloaders to ensure data migrations + small correction for php server exmple + a readme for the php server example
ymh <ymh.work@gmail.com>
parents:
442
diff
changeset
|
8 |
], |
| 442 | 9 |
]; |
10 |
||
11 |
/* |
|
12 |
I will usually place the following in a bootstrap file or some type of environment |
|
13 |
setup file (code that is run at the start of every page request), but they work |
|
14 |
just as well in your config file if it's in php (some alternatives to php are xml or ini files). |
|
15 |
*/ |
|
16 |
||
17 |
/* |
|
18 |
Creating constants for heavily used paths makes things a lot easier. |
|
19 |
ex. require_once(LIBRARY_PATH . "Paginator.php") |
|
20 |
*/ |
|
21 |
defined("LIBRARY_PATH") |
|
22 |
or define("LIBRARY_PATH", realpath(dirname(__FILE__) . '/library/')); |
|
23 |
||
24 |
defined("TEMPLATES_PATH") |
|
25 |
or define("TEMPLATES_PATH", realpath(dirname(__FILE__) . '/templates/')); |
|
26 |
||
27 |
defined("RENKAN_PROJECT_TABLE") |
|
28 |
or define("RENKAN_PROJECT_TABLE", "renkan_project"); |
|
29 |
||
30 |
/* |
|
31 |
Error reporting. |
|
32 |
*/ |
|
33 |
ini_set("error_reporting", "true"); |
|
34 |
error_reporting(E_ALL|E_STRCT); |