We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e8ba51 commit 1e90a48Copy full SHA for 1e90a48
public/index.php
@@ -1,7 +1,11 @@
1
<?php
2
$base = dirname(__DIR__);
3
defined('SAM_DEV') or define('SAM_DEV', 'dev');//you can comment out in production
4
-defined('HOMEURL') or define('HOMEURL', '');/* /sub/folder (without an ending forward slash) when not in root*/
+/*
5
+* /sub/folder (without an ending forward slash) when not in root.
6
+* in production it is recommended you put other file under your web-server un-accessible directory.
7
+*/
8
+defined('HOMEURL') or define('HOMEURL', '/public');
9
include $base.'/Autoload.php';
10
include $base.'/config/main.php';
11
$app = new \mini\core\Sam($config);
public/php-info.php
0 commit comments