Thank you very much Mike:-)) Your answer does of course make sense a
lot;-)) Unfortunately, I checked your post after solving the problem,
so maybe I will use your solution somewhere else;))
I finally did it by product_productsizes hABTM relation table (because
products can have many sizes, as well as sizes can be related to many
products)
and in the view I retrieved the data like this:
<?php foreach ($products as $p):?>
<div>Name: <?php echo $p['Product']['name'];?></div>
<div>Sizes:
<?php foreach ($p['Size'] as $s):?>
<?php echo $s['size'];?>
<?php endforeach;?>
<?php endforeach;?>
all i gotta do is create a dropdown list, cause now it just writes all
the sizes one by one. thanks all for help!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---