paginar
Mira la sección paginación para más detalles sobre cómo usar paginate. | See the pagination section for more details on how to use paginate. |
Aunque en este caso no nos hace falta, si necesitamos paginar podemos utilizar paginate. | If we needed pagination we could use paginate but in this case all will do what we need. |
En la plantilla index donde mostramos el listado de productos podemos invocar al método paginate que da Kaminari pasándole la lista sobre la que estamos paginando. | Inside the index template where we're rendering the list of products we can call the paginate helper method that Kaminari provides, passing in the list we're paginating. |
Puedes filtrar los registros pasando condiciones como segundo parámetro al método paginate() | You can filter the records by passing conditions as second parameter to the paginate() function. |
Una vez que la variable $paginate ha sido definida, podemos llamar al método paginate() en las acciones del controlador. | Once the $paginate variable has been defined, we can call the paginate() method in controller actions. |
Palabra al azar
¡Tirar los dados y aprender una palabra nueva ahora!
¿Quieres aprender inglés?
¡Aprende inglés gratis!