We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e90a48 commit 939b577Copy full SHA for 939b577
core/Sam.php
@@ -11,6 +11,7 @@
11
use mini\core\db\Sqlite;
12
use mini\core\db\Mysql;
13
14
+defined('SAM_DEV') or define('SAM_DEV', 'prod');
15
defined('BASE_PATH') or define('BASE_PATH', dirname(__DIR__));
16
defined('CONTROLLERS_PATH') or define('CONTROLLERS_PATH', dirname(__DIR__).DIRECTORY_SEPARATOR.'controllers');
17
defined('MODELS_PATH') or define('MODELS_PATH', dirname(__DIR__).DIRECTORY_SEPARATOR.'models');
@@ -50,7 +51,7 @@ class Sam
50
51
52
public function __construct($config)
53
{
- if (SAM_DEV) {
54
+ if (SAM_DEV == 'dev') {
55
ini_set('display_errors', 1);
56
}
57
$this->configs = array_merge($this->defaults(), $config);
0 commit comments