I'm fairly new to OO development, and I'm probably overthinking this,
but ...
The manual explains [find($x), findAll($x), findAllBy($x)] as model
functions which leads me to want to put all of my dbaccess logic there,
within functions like getAllWidgets, getSubWidgets, etc.
Then my controller would be mostly lines like:
$this->set('widgets', $this->getAllWidgets());
This all makes sense to me, but it seems that all the tutorials and
bits of code that I see put most of the logic in the controller, using
core model functions directly ...
I know I can do it either way, but want to make sure I'm doing it right
...
Any thoughts?
TIA,
Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---