Skip to content
Browse files

- config keys changed from tyke.* to core.

  • Loading branch information...
1 parent d9b0152 commit b1eb10838871f56ee3768718c8f65ffa68adc979 Harald Kirschner committed May 12, 2009
Showing with 12 additions and 12 deletions.
  1. +9 −9 Tyke.php
  2. +1 −1 sample/form/index.php
  3. +1 −1 sample/form/views/form.php
  4. +1 −1 sample/simple/index.php
View
18 Tyke.php
@@ -91,11 +91,11 @@ public static function register($pattern, $callback = null, $options = array())
/**
* Starts Tyke with the registered routes.
*
- * If "tyke.debug" is enabled, exceptions are displayed, otherwise a 500-Error is shown.
+ * If "core.debug" is enabled, exceptions are displayed, otherwise a 500-Error is shown.
*/
public static function run()
{
- if (self::get('tyke.debug', true)) {
+ if (self::get('core.debug', true)) {
error_reporting(E_ALL);
ini_set('display_errors', '1');
set_error_handler(array('Tyke', 'rethrow'));
@@ -107,7 +107,7 @@ public static function run()
if (!headers_sent()) header('HTTP/1.1 500 Internal Server Error');
- if (self::get('tyke.debug', true)) {
+ if (self::get('core.debug', true)) {
$fixedTrace = $e->getTrace();
@@ -198,9 +198,9 @@ public static function dispatch($uri = null)
}
}
- Tyke::set('tyke.run.basepath', $prepend);
- Tyke::set('tyke.run.uri', $page);
- Tyke::set('tyke.run.self', $self);
+ Tyke::set('core.run.basepath', $prepend);
+ Tyke::set('core.run.uri', $page);
+ Tyke::set('core.run.self', $self);
}
foreach(self::$routes as $route) {
@@ -222,7 +222,7 @@ public static function dispatch($uri = null)
}
}
- Tyke::set('tyke.run.route', $route);
+ Tyke::set('core.run.route', $route);
// get params from named matches
array_shift($matches);
@@ -233,7 +233,7 @@ public static function dispatch($uri = null)
if (is_string($key)) $params[$key] = $match;
}
- Tyke::set('tyke.run.params', $params);
+ Tyke::set('core.run.params', $params);
// populate data back to global data holders
$_GET = array_merge($_GET, $params);
@@ -242,7 +242,7 @@ public static function dispatch($uri = null)
self::execute($route['callback'], $params);
}
- $r404 = Tyke::get('tyke.r404', 'r404');
+ $r404 = Tyke::get('core.r404', 'r404');
if ($r404 && function_exists($r404)) {
call_user_func($r404, $_SERVER['REQUEST_METHOD']);
View
2 sample/form/index.php
@@ -3,7 +3,7 @@
require('../../Tyke.php');
// debug enables display-errors and exception page
-Tyke::set('tyke.debug', true);
+Tyke::set('core.debug', true);
// include more libraries, start a session ... feed the dog
View
2 sample/form/views/form.php
@@ -1,4 +1,4 @@
-<form id="form-md5" action="<?= Tyke::get('tyke.run.self') ?>" method="post">
+<form id="form-md5" action="<?= Tyke::get('core.run.self') ?>" method="post">
<fieldset>
<legend>Generate MD5 from Text</legend>
View
2 sample/simple/index.php
@@ -3,7 +3,7 @@
require('../Tyke.php');
// debug enables display-errors and exception page
-Tyke::set('tyke.debug', true);
+Tyke::set('core.debug', true);
// include more libraries, start a session ... feed the dog

0 comments on commit b1eb108

Please sign in to comment.
Something went wrong with that request. Please try again.