You might want to think about making your models fatter and making use of behaviors if you really want to contain the majority of your business logic out of your controllers
see http://www.littlehart.net/atthekeyboard/2007/04/27/fat-models-skinny-controllers/ and http://groups.google.com/group/cake-php/web/frequent-discussions (there is a section on behaviors) Sam D On 9/20/07, Grant Cox <[EMAIL PROTECTED]> wrote: > > loadModel("YourModel"); > $model = &new YourModel(); > > I've been told that using models in your components is not best > practice, however I do this myself quite often. > > > On Sep 21, 2:32 pm, "Ananda Putra" <[EMAIL PROTECTED]> wrote: > > How to load a model in a component without declare it in the > > controller which cal the component?? > > > > I want to focus and implement all business logic in the component. The > > controller just for call the logic in the component and generate the > > view. > > > > Thanks. > > > > -- > > Regards, > > Ananda Putra > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
