because  write an  sql is very convinence.
if I use the  $this->find(),  can I get value more convinence?


2009/1/7 teknoid <[email protected]>

>
> why are you using $this->query() and not $this->find()?
>
> On Jan 6, 8:38 pm, Rimoe <[email protected]> wrote:
> > hi,everyone!
> >
> > I'm a newbie.
> >
> > I have saw In the bake view, If you want to use the resultset,
> > only use the $form->input('mail'),
> >
> > but the find result ()
> > In the controller
> > $unreadcounts==$this->query($sql);
> > $this->set(compact('unreadcounts'));
> >
> > in the view, I must to get the result use the
> > $unreadcounts[0][0]['unread'];
> > It's so long.
> > what has the short method to get the result of 'unread'
> >
> > Thank U.
> >
> > rimoe
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to