|
|
@@ -190,12 +190,13 @@ nano config/config.php
|
|
|
|
|
|
ini_set('display_errors', 1);
|
|
|
|
|
|
-define('TPL_DIR', APP_DIR . '/templates');
|
|
|
+define('APP_NAME', "MyAPP");
|
|
|
|
|
|
-define('DB_DSN', 'mysql://root@localhost/myapp');
|
|
|
+define('ENV', "dev");
|
|
|
|
|
|
-define('APP_NAME', "MyAPP");
|
|
|
+define('TPL_DIR', APP_DIR . '/templates');
|
|
|
|
|
|
+define('DB_DSN', 'mysql://root@localhost/myapp');
|
|
|
```
|
|
|
|
|
|
Créer le fichier config/routes.php et le remplir avec ceci :
|