Re: count no of rows.

2008-12-29 Thread majna
with association. > > >> However if want no.s of messages in perticuler project in project page i > >> am > >> confused. > > >> How can i get this. if anything can be done with association. > > >> Thanks > >> Piyush    :super: > >

Re: count no of rows.

2008-12-29 Thread Stephen Orr
hanks for your help however i find error as >  unexpected T_DOUBLE_ARROW > > when i paste code > "$count = > $this->Project->Message->findCount(array('Message.project_id')=>$MyProjectId); > " > > Thanks > > Piyush > > -- > View t

Re: count no of rows.

2008-12-29 Thread piyushsharmajec
ything can be done with association. >> >> Thanks >> Piyush    :super: >> -- >> View this message in >> context:http://www.nabble.com/count-no-of-rows.-tp21183253p21183253.html >> Sent from the CakePHP mailing list arch

Re: count no of rows.

2008-12-28 Thread piyushsharmajec
Hai, Thanks for your help however i find error as unexpected T_DOUBLE_ARROW when i paste code "$count = $this->Project->Message->findCount(array('Message.project_id')=>$MyProjectId); " Thanks Piyush -- View this message in context: http:/

Re: count no of rows.

2008-12-27 Thread Bernardo Vieira
You can also optmize it a bit further and use countercache http://book.cakephp.org/view/490/counterCache-Cache-your-count Alexandru Ciobanu wrote: > majna wrote: > >> tipo :( >> $count = $this->Project->Message->findCount(array >> ('Message.project_id'=>$MyProjectId)); >> >> > > findCo

Re: count no of rows.

2008-12-27 Thread Alexandru Ciobanu
majna wrote: > tipo :( > $count = $this->Project->Message->findCount(array > ('Message.project_id'=>$MyProjectId)); > findCount() is deprecated. Use find('count') instead. http://book.cakephp.org/view/73/Retrieving-Your-Data --~--~-~--~~~---~--~~ You received t

Re: count no of rows.

2008-12-27 Thread majna
t; How can i get this. if anything can be done with association. > > > Thanks > > Piyush    :super: > > -- > > View this message in > > context:http://www.nabble.com/count-no-of-rows.-tp21183253p21183253.html > > Sent from the CakePHP mailing list archive at Nabble.co

Re: count no of rows.

2008-12-27 Thread majna
s in perticuler project in project page i am > confused. > > How can i get this. if anything can be done with association. > > Thanks > Piyush    :super: > -- > View this message in > context:http://www.nabble.com/count-no-of-rows.-t

count no of rows.

2008-12-27 Thread piyushsharmajec
no.s of messages in perticuler project in project page i am confused. How can i get this. if anything can be done with association. Thanks Piyush:super: -- View this message in context: http://www.nabble.com/count-no-of-rows.-tp21183253p21183253.html Sent from the CakePHP mailing list