Re: Distinct query and paginator

2009-12-16 Thread E T
['pageCount'] = $ttl_page; if($ttl_page==$this->params['paging']['Member']['page']){ $this->params['paging']['Member']['nextPage'] = ''; } --- I know, this may not be the best solution, but it work

Distinct query and paginator

2009-12-13 Thread E T
Hi all, I'm trying to display a list of records in my view and limiting the records to 20. However, there are duplicate data in the model. So the view is not displaying properly. I've tried this method ( http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/) but

Re: Export to CSV using Helper, resulting error

2009-11-25 Thread E T
ld highly recommend taking a look at this approach. It is the > simplest approach I have found, and a very clear explanation. > > Hopefully it helps... > > On Nov 24, 10:03 pm, E T wrote: > > Hi all, > > > > I am trying to put a download link on one of my view, so wh

Export to CSV using Helper, resulting error

2009-11-24 Thread E T
Hi all, I am trying to put a download link on one of my view, so when user click on that link it will automatically generate a csv file and pop up for user to download. I followed the instruction here http://blog.allmythingstodo.com/tag/cakephp/using the helper from Adam Royle ( http://bakery.cak

Re: Cake PHP Form validation

2009-11-18 Thread E T
rd2', array('label'=>'Please confirm your > password')); > > See what happens then. > > On Nov 18, 2:57 pm, E T wrote: > > Hi jburns, > > > > Thanks a lot for the reply. I've tried adding your code but it's still > not > >

Re: Cake PHP Form validation

2009-11-18 Thread E T
Hi jburns, Thanks a lot for the reply. I've tried adding your code but it's still not working. This is what happened: - if name, email or username is empty, it will give an error message, something like "Alphabets and numbers only" or "This field cannot be left blank". However, there is no error