public
Last active

Old-style Request->uri() for Kohana v3.2

  • Download Gist
request.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?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);
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.