Guys, thanks very much for your replies. I really value them.
However, what if my methods are part of the model instead of the controller?
e.g. If I had a 'Sale' model which contained a method 'addItem()' for
adding an item to a Sale, which had something alone the lines of the
folowing:
addItem($item_id)
{
....
....
$this->Sale->StockItem->decrementStockItem($item_id);
....
....
}
Would this be considered a "Train Wreck" since it is depending on other
models, or, is this in fact an example of good encapsulation because I
have one interface to the Sale model which hides the communication with
the other models?
Cheers,
Sonic.
--~--~---------~--~----~------------~-------~--~----~
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: cakePHP and "Train Wrecks" Sonic Baker
- Re: cakePHP and "Train Wrecks" Gustavo Carreno
- Re: cakePHP and "Train Wrecks" Sonic Baker
