-
-
Save graphis/3836337 to your computer and use it in GitHub Desktop.
Old-style Request->uri() for Kohana v3.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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