开发者

cakephp: '/Array' in pagination results?

开发者 https://www.devze.com 2023-03-16 18:24 出处:网络
I\'m using a custom route to present specific search results on a page. The first page of results loads fine, but the pagination includes \'/Array\' before the parameters and the links do not pull bac

I'm using a custom route to present specific search results on a page. The first page of results loads fine, but the pagination includes '/Array' before the parameters and the links do not pull back any results. Manually removing '/Array' from the URL lets the page load properly.

failing URL generated by cake:

http://www.advancelegaljobs.com/app/webroot/index.php/jobs/search/Array/page:2/experience:0/industry:0/radius:North+Carolina

开发者_开发百科good URL:

http://www.advancelegaljobs.com/app/webroot/index.php/jobs/search/page:2/experience:0/industry:0/radius:North+Carolina

Why would '/Array' be being inserted? Or how do I get rid of it?

UPDATE:

I ended out using jQuery to strip '/Array' out of the pagination links. It works, but I'd really like to implement a proper fix.

0

精彩评论

暂无评论...
验证码 换一张
取 消