Man, I wrote a huge reply before re-reading your last post and actually understanding what you were asking.
Okay, I think what you're looking for is requestAction(). Search the group for it or look through the docs and I think you'll quickly find your answer. HTH, Eric On 2/15/07, Norman <[EMAIL PROTECTED]> wrote: > > > Sorry, I know that I wasnt able to explain. Let me try again: > > Lets say I have two related tables on a DB, users and groups. A user > belongsTo a group, a group hasMany users. And lets say I have > generated all models, controllers and CRUD views using bake.php, for > both tables. My user model will have an index action/view, with the > classic findAll to $data in the controller, and an index.thtml view > rendering an html table with that. The "View" view (view.thtml) for > the group model will 1) show an specific group record; and 2) show a > table with related user records. This related users table is rendered > by a foreach loop traversing an array with the related users data. So > far so good. > > What Im trying to accomplish (with no success) is to find a way to, > instead of using that foreach loop to show the related user records, > render the index view of the USER object inside this group view, > feeding that with the related users data array. Im new to Cakephp, so > this is beating me up beautifully. > > Hope now this is more understandable... > > Thanks in advance for any help, > Norman > > On 15 fev, 07:28, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > > I'm really trying to understand. Can you give more information about > what > > you want? Please clarify... > > > > Eric > > > > On 2/14/07, Norman <[EMAIL PROTECTED]> wrote: > > > > > > > > > In a View, bake.php generates scaffolded methods with foreach $data/ > > > etc generated html table, to show related models. > > > > > Is there a way I can (re)use/render another view in that context, > > > instead of the foreach and the html table? For instance, use an index > > > controller and view in that place? > > > > > Hmm. Im not sure I was able to explain what I want, but if someone > > > understand this, let me know. > > > > > Thanks in advance! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
