I am not sure exactly what is your intention,
but isn't the problem using same name for Model and Component?
Either reference must be overwritten in controller.
Also, if you want to access to model and/or set data for view,
it should be done through controller, I believe.
So, in component, it should be
$this->controller->set('product_sections', $this->controller->ProductSection->findAll());
Sohei
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- Re: reading table from a component Sohei Okamoto
