Pagnation with multiple Models

2008-01-11 Thread Johan @ Notitia.nl
Hi, I'm building a search controller which has to retrieve data from multiple tabels. Normaly that wouldn't be a problem if you have set the correct association at the models. The big problem in this case is the fact that I can't change or alter the tables. This means I have to create some weird

Re: Pagnation with multiple Models

2008-01-11 Thread Marcin Domanski aka kabturek
Hey, First of all - code in English ;) that comes handy when someone wants to read and understand your code. In you case i would do a dummy model and include your code there. When you look in the paginate() mthod body ( you did you homework, right ?) you will see that it uses the custom