Monday, January 26, 2009

how to generate views for "recursive 2" associations?

Hi, I'm try to bake views which also show associated items of the
associated items I'm showing.

The problem is, I can't find any variable in the bake template that
tells me anything about these "2nd level" associations.
Eg after setting var $recursive = 2; in the model, or $this->Model-
>recursive = 2; in the controller, I do get the data available in the
view, but i want these views be generated.

in the bake template (eg /templates/views/view.ctp ) when I print_r
($associations) I only see info about the "first level" associations.

Any ideas how to do this?
thanks,
Dieter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: