okay i changed the database layout

i have now table top5s with only 1 field: id
and a table songs with id-artist-title- top5_id

relations: top5 hasmany song, song belongsto top5

but now the problem is, that the scaffolded views are not what i want.
for example top5s/add.thtml is just a page without fields (obviously),
and just a button to save a new top5d
and the view songs/add.thml is just a form to save 1 songs (which is
also logical)

but i want a form (top5s/add.thtml) that lets the user input 5 songs,
and when the form-data gets processed this should save 1 new top5, and
then the 5 songs, with the right top5_id

i got most of the view right, i think, but i don't got a clue of how to
do the controller action, i hope someone can help me with that!
here is what i have:
http://cakephp.org/pastes/show/b44148f8eed94b9472d11e28d7c717b9


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

Reply via email to