0
我学习Kohana 3.2和分页。但我收到错误ErrorException [ Notice ]: Undefined property: Request::$uri
。为什么我得到这个错误?
问题在哪里?
分页类(模块)
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();
}
谢谢你,洛朗! :) – reGative