Browse Source

Fix: DB configuration & 404 and 500 route

Mario Döring 11 years ago
parent
commit
1401d22d87

+ 4 - 4
frameworks/PHP/php-clancatsframework/CCF/app/config/database.config.php

@@ -10,15 +10,15 @@ return array(
 	 */
 	'main' =>  array(
 		// selected database
-		'db'	 => 'localhost',
+		'db'	 => 'hello_world',
 	
 		// driver
 		'driver' => 'mysql',
 	
 		// auth
-		'host'		=> '127.0.0.1',
-		'user' 		=> 'root',
-		'pass'		=> '',
+		'host'		=> 'localhost',
+		'user' 		=> 'benchmarkdbuser',
+		'pass'		=> 'benchmarkdbpass',
 		'charset'	=> 'utf8'
 	),
 );

+ 6 - 0
frameworks/PHP/php-clancatsframework/CCF/app/config/router.config.php

@@ -8,6 +8,12 @@
  * routes.
  */
 return array(
+
+	/*
+	 * Not Found and internal Server Error
+	 */
+	'#404'	=> 'Error@404',
+	'#500'	=> 'Error@500',
 	
 	/**
 	 * JSON response benchmark