Overwrite the method in any class (controller or even appcontroller/
appmodel) that inherits the library's class (controller/model)
On Sep 5, 6:52 am, Jaime [EMAIL PROTECTED] wrote:
It is possible to define custom paginate() and paginateCount() methods
in a model.
But sometimes many models
Of course I can but, shouldn't be this in the core?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
Another workaround for this:
class AppModel extends Model {
function paginate($params) {
return $this-Behaviors-Mybehaviour-paginate($this, $params);
}
function paginateCount($conditions) {
return $this-Behaviors-Mybehaviour-paginateCount($this,
$conditions);
}
}
I don't like