Skip to content

Instantly share code, notes, and snippets.

@graphis
Forked from biakaveron/request.php
Created October 4, 2012 20:47
Show Gist options
  • Save graphis/3836337 to your computer and use it in GitHub Desktop.
Save graphis/3836337 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