Permalink
Browse files

Fixes to target Kohana 3.1.4's API.

  • Loading branch information...
1 parent 38cee07 commit 407b000a27b95e5ffe2a6540f78bd28a8ece2223 Charles Grunwald (Juntalis) committed Aug 4, 2011
@@ -11,7 +11,7 @@ public function before()
public function after()
{
- $this->request->response = $this->template;
+ $this->response->body($this->template->render());
}
/**
@@ -58,7 +58,7 @@ public static function test($urls = NULL)
// If no url provide, use the current url
if ($urls === NULL)
{
- $urls = Request::instance()->uri;
+ $urls = Request::$current->uri;
}
return View::factory('devtools/route-test',array(
// Get all the tests
@@ -8,7 +8,7 @@
try
{
- echo Kohana::debug(Kohana::config($name));
+ echo Debug::dump(Kohana::config($name));
}
catch (exception $e)
{
@@ -18,7 +18,7 @@
echo "<pre>";
foreach($found as $path)
{
- echo " ".Kohana::debug_path($path)."\n";
+ echo " ".Debug::path($path)."\n";
}
echo "</pre>";
}
View
@@ -8,10 +8,10 @@
try
{
- echo Kohana::debug(I18n::load($name));
+ echo Debug::dump(I18n::load($name));
}
catch (exception $e)
{
echo "Something went terribly wrong. Error message: " . Kohana::exception_text($e);
}
-}
+}
View
@@ -47,13 +47,13 @@
</tr>
<tr>
<th>Kohana::init() settings</th>
- <td><code>"base_url" = <?php echo Kohana::dump(Kohana::$base_url) ?><br />
- "index_file" = <?php echo Kohana::dump(Kohana::$index_file) ?><br />
- "charset" = <?php echo Kohana::dump(Kohana::$charset) ?><br />
- "cache_dir" = <?php echo Kohana::dump(Kohana::$cache_dir) ?><br />
- "errors" = <?php echo Kohana::dump(Kohana::$errors) ?><br />
- "profile" = <?php echo Kohana::dump(Kohana::$profiling) ?><br />
- "caching" = <?php echo Kohana::dump(Kohana::$caching) ?></code></td>
+ <td><code>"base_url" = <?php echo Debug::dump(Kohana::$base_url) ?><br />
+ "index_file" = <?php echo Debug::dump(Kohana::$index_file) ?><br />
+ "charset" = <?php echo Debug::dump(Kohana::$charset) ?><br />
+ "cache_dir" = <?php echo Debug::dump(Kohana::$cache_dir) ?><br />
+ "errors" = <?php echo Debug::dump(Kohana::$errors) ?><br />
+ "profile" = <?php echo Debug::dump(Kohana::$profiling) ?><br />
+ "caching" = <?php echo Debug::dump(Kohana::$caching) ?></code></td>
</tr>
</table>
@@ -8,7 +8,7 @@
try
{
- echo Kohana::debug(Kohana::message($name));
+ echo Debug::dump(Kohana::message($name));
}
catch (exception $e)
{
@@ -166,7 +166,7 @@
</head>
<body>
- <?php $action = Request::instance()->action; ?>
+ <?php $action = Request::$current->action(); ?>
<div id="wrap">
<div id="menu">
<h2>devtools<br /><small> by bluehawk</small></h3>
@@ -186,4 +186,4 @@
</div>
</div>
</body>
-</html>
+</html>

0 comments on commit 407b000

Please sign in to comment.