这是控制器文件,所有的搜索结果都来自foreach循环,我试着对它进行分页,但不知道怎么做。class SerController extends AppController public function initialize() parent$check_break=explode(" ",$check_string);
$s1=TableRegistry::get(
我的网站(感谢这里的许多人的帮助)被设置为显示固定数量的更新(52个),其中每个星期五,一个轮出,一个新的轮流进来。这52个更新在13个页面上每页显示4个。它工作得很完美。下面是我的问题:$updates = "SELECT update_id, update_title, update_desc, path WHERE flag_live = ?
ORDER BY update_