Skip to content

Instantly share code, notes, and snippets.

@biakaveron
Created May 23, 2012 06:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save biakaveron/2773591 to your computer and use it in GitHub Desktop.
Save biakaveron/2773591 to your computer and use it in GitHub Desktop.
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