Permalink
Browse files

Adding in environment settings for the app. Adding new routingEnabled…

… property for the ModuleManager
  • Loading branch information...
1 parent 994aacc commit dd4c80a706fd4ba1a509638100af610c79127600 @dragoonis dragoonis committed May 26, 2012
Showing with 11 additions and 4 deletions.
  1. +10 −3 app/app.config.php
  2. +1 −1 app/modules.config.php
View
@@ -1,6 +1,13 @@
<?php
-return array(
- 'cache_dir' => __DIR__ . '/cache',
+$config = array(
+ 'environment' => 'production',
'templating.engine' => 'php',
'datasource.connections' => include (__DIR__ . '/datasource.config.php')
-);
+);
+
+// Are we in debug mode ?
+if($config['environment'] !== 'development') {
+ $config['debug'] = $config['environment'] === 'development';
+ $config['cache_dir'] = __DIR__ . '/cache';
+}
+return $config; // Very important
View
@@ -1,5 +1,5 @@
<?php
return array(
'activeModules' => array('User'),
- 'listenerOptions' => array('module_paths' => array('./modules'))
+ 'listenerOptions' => array('module_paths' => array('./modules'), 'routingEnabled' => true),
);

0 comments on commit dd4c80a

Please sign in to comment.