视图页面中的分页错误

时间:2011-11-11 10:29:13

标签: php cakephp cakephp-1.3

我去检查了网址应该是什么?value = teaching,实际错误网址为http://localhost/xconnect_Final3/searches/simple_search/?value/page:2

如何从search_controller中获取值?

$this->Paginator->options(array('url' => '?value'));
//debug()
echo $this->Paginator->counter(array(
    'format' => __('Page %page% of %pages%, showing %current% users out of %count% total users', true)
));
?>

以下代码位于我的search_controller

    if(isset($this->params["url"]["value"])){
        $value=$this->params["url"]["value"]; 
    }

    $this->User->recursive = 1;

  $this->paginate = array('conditions' => array('User.id' =>$finalResults_userList),
                            'limit' => 10);
  $this->set('data', $this->paginate('User', $finalResults_userList));

0 个答案:

没有答案