I try to use the paginate class into CakePhp having the query results created by a custom method and not in the traditional CakePHP way .
At the end i have an array.
I try to apply the paginate into this array but did not see it paginating :
$myArray = $this->myModel->SearchDatabaseData( );
$myArray = $this->paginate('myModel');
The query is made into a Component so it claims for a Model instance instead
PaginatorComponent::validateSort() must be an instance of Model, instance of VerificacaoComponent given
Can i apply CakePHP pagination into a custom made array ?
I am using CakePhp 2.5.