Create a gist now

Instantly share code, notes, and snippets.

Old-style Request->uri() for Kohana v3.2
<?php defined('SYSPATH') or die('No direct script access.');
class Request extends Kohana_Request {
public function uri(array $params = null)
if ($params === NULL)
return parent::uri();
$params += $this->_params + array(
'directory' => $this->_directory,
'controller' => $this->_controller,
'action' => $this->_action,
return $this->_route->uri($params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment