Re: Help me with paginate, please ; )

2007-11-07 Thread puatki
Thank You. That was very helpful ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMA

Re: Help me with paginate, please ; )

2007-11-06 Thread puatki
Thanks for answer ;) I have cake 1.2. I know how to paginate something "simple". Here I have some count() and sum() fields, group by etc and I do not know how to do this with paginate. $this->paginate( $conditions ) did not work for me. --~--~-~--~~~---~--~~ You

Help me with paginate, please ; )

2007-11-06 Thread puatki
Hello ( and sorry for my english ). I have working findAll rule : $this->User- >bindModel(array('hasOne'=>array('Dummy'=>array('className'=>'Stat','foreignKey'=>'user_id'))),false); $this->data = $this->User->findAll('Dummy.code = User.code AND Dummy.s = 1 GROUP BY User`.`id`',array('id','userna

paginator->numbers - problem with ajax ...

2007-06-24 Thread puatki
Hello ... ;) I have problem with $paginator->numbers. When I execute code: $paginator->sort('TOPIC', 'topic', array('url'=> array('controller'=>'Projects', 'action'=>'sort'),'update'=>'list')); everything works ok and my site use ajax. When I try do the same with $paginator->numbers echo $pagi