Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread fr3nch13
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

Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread Jaime
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

Re: Suggestion: Custom paginate() method ...in a Behavior

2008-09-05 Thread Jaime
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