PelnaE
PelnaE

Reputation: 69

Why do I get this error?

I study Kohana 3.2 and pagination. But I get error ErrorException [ Notice ]: Undefined property: Request::$uri.

Where is the problem?

Pagination class (module)

switch ($this->config['current_page']['source'])
        {
            case 'query_string':
                return URL::site(Request::current()->uri).URL::query(array($this->config['current_page']['key'] => $page));

            case 'route':
                return URL::site(Request::current()->uri(array($this->config['current_page']['key'] => $page))).URL::query();
        }

Upvotes: 0

Views: 488

Answers (1)

laurent
laurent

Reputation: 90776

Use Request::current()->uri() instead of Request::current()->uri.

Upvotes: 2

Related Questions