where to put business logic in a library?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-04-28T12:26:31Z Indexed on 2010/04/28 12:43 UTC
Read the original article Hit count: 182

Filed under:
|
|

i'm going to create a library that consists of a lot of separate classes.

i'm very familiar with mvc but have never created a pure library before.

i wonder where i should put the business logic? the logic that is in the controller in a mvc.

should it be in a class? or in a "bootstrap" file?

and should one file include every class, or should only one class include its classes it uses?

thanks!

© Stack Overflow or respective owner

Related posts about mvc

Related posts about libraries