Monday, June 14, 2010

Re: Custom pagination with plain SQL

On Jun 14, 2:26 pm, Lucca Mordente <luccamorde...@gmail.com> wrote:
> The search is performed in about 40 tables.
> Imagine instantiate 40 models to do this.
> And I have some other tricks that force me to use plain SQL.
>
> Any sugestions?

Yes, take a look at the SearchableBehavior I linked to. It'll create
an index, in a single table, of all your searchable model records.

I think it really should be re-written as a plugin (and I've modified
it myself in other ways) but it does the job.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate