Thanks!
I also tried this and it did work.
$this->set('articles', $this->Post->findAllBycategoryId(1));
> $this->set('publications', $this->Post->findAllBycategoryId(2));
> $this->set('news', $this->Post->findAllBycategoryId(4));
>
Louie
On Fri, Jun 20, 2008 at 11:24 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> On Thu, Jun 19, 2008 at 11:17 PM, Louie Miranda <[EMAIL PROTECTED]>
> wrote:
> > Anyway.. tried this..
> > $this->Post->find('articles', array('conditions'=>
> array('Post.category_id'
> > => 1)));
> >
> > But, could not get the correct parameters working. I'll check again the
> > book.
>
> $this->Post->find('all', array('conditions' => array('Post.category_id' =>
> 1)));
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard: http://www.littlehart.net/atthekeyboard
>
> >
>
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---