我使用CakePHP,并尝试与一些复选框来定制分页程序的结果。我在URL参数传递这样检查数组不是空(PHP)
"http://localhost/myproject2/browses/index/page:2/b.sonic:1/b.hayate:7/b.nouvo:2/b.others:-1/b.all:-2"
和CakePHP翻译网址是数组像这样
Array
(
[page] => 2
[b.sonic] => 1
[b.hayate] => 7
[b.nouvo] => 2
[b.others] => -1
[b.all] => -2
)
其他时间当我通过参数没有检查任何复选框。
的 “http://本地主机/ myproject2 /浏览/索引/页:2”
和CakePHP翻译网址是数组这样
Array
(
[page] => 2
)
如何简单的检查,如果[B。 ????]是否可用?我不能使用!empty()函数,因为array [page]正在开始。