Humm, let me give it a shot. If I understand you correctly you want to
see the users that belong to a specific network when you are viewing
the network information generated from the scaffold? From what I know
(and I'm still cutting my teeth on cake so I may be wrong) the
scaffold won't show all the related records for the $hasMany side, but
it will show you (and give you select menus in create/update pages)
the related Network when you view a user (the $belongsTo side). Once
you move past scaffolding, you can easily add the functionality to
view all Users associated with a network. You just need to set:

$this->Network->recursive = 1;
In your Network controller, and then you can call the user data in
your view by doing something similar to:

<?php foreach($network['User'] as $key => $user): ?>
   <?php echo $network['User'][$key]['name']?>
<?php endforeach; ?>

I hope that helps.


> My question is: if I have the DB tables populated (there is a user
> which belongs to network 0), shouldn't I get
> to see that user listed on the screen when I view network 0?


--~--~---------~--~----~------------~-------~--~----~
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