On Nov 9, 2:21 pm, 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????

You do not have an equipoS model. You also don't need to pass any args
to paginate.

AD

-- 
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

Reply via email to