two questions: a)why are you using both find(all) and paginate? b) why do you use lowercase model name in paginate()?
On 9 Nov., 14:21, Jean Luis Morillo <jeanluis.mori...@gmail.com> wrote: > Hello > > Im getting this error message when trying to paginate. > > Warning (512): Controller::paginate() - can't find model equipos in > controller EquiposController [CORE\cake\libs\controller > \controller.php, line 1104] > > This is the function in the controller (line with arrow) > > function index1() > { > $this->set('equipos',$this->Equipo->find('all')); > ---->> $data = $this->paginate('equipos'); > $this->set('equipos', $data); > } > > Anyone has a idea of whats happening???? > > thx in advance...... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php