As I recall from a recording of a cakeshow that 1.2 automagically handles
this is you create a camelized var from the model name and pass that findall

eg in post controller  (in this example I have changed categories to
post_categories)

$postCategories = $this-postCategories->findAll(...)
$this->set('postCategories', $postCategories);

I may be off base; but I am sure this can be invoked by automagic

On 17/01/2008, Carl <[EMAIL PROTECTED]> wrote:
>
>
> I have a table of headings and a table of categories. Each heading
> "hasMany" categories, and each category "belongsTo" a heading. I need
> a view that lists each heading with its associated categories.
>
> I have the models working with the "scaffolded" views of headings and
> categories (separately), but I don't know (and can't find in the
> manual) the way to build the controller and view files for what I
> need.
>
> Can anyone point me in the right direction?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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