Sorry, I'm still getting used to the concepts.

I guess I was just unsure about how to access data from another model,
but I found out I can just acces the category model by doing this:

$this->Post->Category->generateList(); // notice the Post->Category
part

Wow, Cake amazes me with its intuïtivity all the time!

Thanks for pointing to the link, it helped me out!

Gerben.

On 13 mrt, 13:45, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 3/13/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
> > In my app, a post can belong to one category, and I want to list all
> > categories in a dropdown, with the current category selected.
>
> Hmmm... why do I have a sinking feeling that you have not really read
> the manual?
>
> http://manual.cakephp.org/chapter/modelslook up  generateList and
> then explore the HTML helper a bit
>
> Tarique
>
> --
> =============================================================
> PHP for E-Biz:http://sanisoft.com
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> =============================================================


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to