Hi
The code looks right to me. Have you tried print_r($products) - assuming you
set your find in controller to 'products' - and see if there's anything
beside $products['Product']?
How's your db table? Why not having specs as a table with battery, build,
etc as the fields and have the model association like Product hasOne Spec:
var $hasOne = array('Spec'=>
array('className' => 'Spec',
'foreignKey' => 'product_id',
'conditions' => '',
'dependent' => true,
'order' => '')
);
Uwie
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---