> Ok this might not make much sense written out but here goes.
>
> User has a setting to remove or keep certain pages from displaying in
> paginated results.
>
>
>
> So what I am currently doing in the pagination is passing the pages they do
> not want to see again (marked as not interested)
>
> as an array of id's like 'NOT' => array('Market.id' => $remove) so this
> stops those pages from being grabbed. It works fine the way it is
>
> but was wondering if it would be better to simply add a contain Market and
> then unset keys where the user has a Market.page_id => 1?
The former is what I would do. If you remove the pages after the
results have been fetched you'd no longer have the correct number of
pages in your data set. Better to let the DB work it out.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment