there is a photos table and a galleries table.
every photo belongsTo a gallery
both tables have a field userID which tells which user created this
gallery or uploaded this photo.
how do i convert :
echo $this->Form->input('gallery_id');
to something like :
echo $this->Form->input( gallery_id WHERE userId_of_gallery ==
$userId );
this will ensure that when adding photos to an album... the drop down
menu in the view file only shows that galleries which were created by
currently logged in user ( $userId is the userId of currently loggen
in user)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php