我去检查了网址应该是什么?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));