Business logic class is not 3rd party code. I think cake is missing "lib" directory like in ruby: "Classes, that hold data go into app/models. Classes that have nothing to do with holding data, go into the lib directory."
We are using vendors directory in cake, becouse App::import can not load classes elswhere. On Dec 23, 10:22 am, tekomp <[email protected]> wrote: > Those should go in one of the 'vendors' directories. > > On Dec 22, 2:41 am, dmitri1 <[email protected]> wrote: > > > I would like to know: Where to put business logic related classes, > > which are not related with cake entities: (db, views, components, > > controllers, etc)? > > > The classes which model some kind of thing in real world. Let's say > > class which models toaster. The class doesn't (and shouldn't) know > > about cake controllers, components, etc. Where to put it? > > > I think "models" directory probably is place for such classes, but > > from other side the classes are not cake models (not related with > > database table). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
