-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
44 lines (34 loc) · 1.07 KB
/
index.php
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
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
---------------------------------------
Folder structure
---------------------------------------
This boilerplate comes with a custom folder structure by default:
(1) `accounts`, `cache` & `sessions` are stored inside `storage`.
However, for a more secure setup, the following is recommended:
(2) In addition to (1), `assets`, `index.php` & `.htaccess` are
stored inside `public`.
Note: For (2) to work, you need a working Apache or NGINX setup!
See https://getkirby.com/docs/guide/configuration#custom-folder-setup
*/
/* 1 */
include 'kirby/bootstrap.php';
/* 2 */
// include '../vendor/autoload.php';
$kirby = new Kirby([
'roots' => [
/* 1 */
'index' => $base = __DIR__,
/* 2 */
// 'index' => __DIR__,
// 'base' => $base = dirname(__DIR__),
// 'content' => $base . '/content',
// 'site' => $base . '/site',
/* 1 & 2 */
'storage' => $storage = $base . '/storage',
'accounts' => $storage . '/accounts',
'cache' => $storage . '/cache',
'sessions' => $storage . '/sessions',
]
]);
echo $kirby->render();