Ver Mensaje Individual
  #45 (permalink)  
Antiguo 04/03/2012, 12:18
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 8 meses
Puntos: 793
Respuesta: Paginator Zend Framework 2.0 beta

Hago un pull a git hoy y resulta que:

Cita:
Fatal error: Class 'Zend\Db\Table\AbstractTable' not found
entonces se pasó a usar Zend\Db\TableGateway\TableGateway y todo bien pero al paginador me tocó ajustarlo con el método toArray así:

Código PHP:
Ver original
  1. $paginator = Paginator::factory($data->toArray());

Está bien esto o que otra solución hay. Porque si no lo coloco me sale:

Cita:
Fatal error: Uncaught exception 'Exception' with message 'This result is a forward only result set, calling rewind() after moving forward is not supported'
Aquí pueden ver como tengo el paginador ahora:

https://github.com/andresdzphp/zf2b2

Saludos.
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP