PaginatorComponent (class)

Class PaginatorComponent

This component is used to handle automatic model data pagination. The primary way to use this component is to call the paginate() method. There is a convenience wrapper on Controller as well.

Configuring pagination

You configure pagination using the PaginatorComponent::$settings. This allows you to configure the default pagination behavior in general or for a specific model. General settings are used when there are no specific model configuration, or the model you are paginating does not have specific settings.

$this->Paginator->settings = array(
        'limit' => 20,
        'maxLimit' => 100
);

The above settings will be used to paginate any model. You can configure model specific settings by keying the