Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kohana v3 unset the 'controller' 'action' and 'directory' keys from the _params array, ... #2

Open
wants to merge 1 commit into
base: 3.2/develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions classes/kohana/pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,17 @@ public function __construct(array $config = array(), Request $request = NULL)
$request = Request::current();
}

//kohana v3 unset the controller action & directory from _params array
//use Request::process_uri to catch them all
$route_uri = Request::process_uri($request->uri());

$this->_request = $request;

// Assign default Route
$this->_route = $request->route();
$this->_route = $route_uri['route'];

// Assign default route params
$this->_route_params = $request->param();
$this->_route_params = $route_uri['params'];

// Pagination setup
$this->setup($config);
Expand Down