Where do you put non-controller classes in codeigniter?

Posted by sprugman on Stack Overflow See other posts from Stack Overflow or by sprugman
Published on 2010-05-25T16:27:16Z Indexed on 2010/05/30 22:22 UTC
Read the original article Hit count: 164

Filed under:
|
|

I've got a class Widgets. Widgets are made up of Doohickies. I'm never going to need to access Doohickies directly via url -- they're essentially a private class, only used by Widgets. Where do you put your code to define the Doohicky class? In /app/controllers/doohicky.php? in app/controllers/widget.php? somewhere else? Obviously, the former seems cleaner, but it's not obvious to me how to make the Doohicky class available to Widget.

© Stack Overflow or respective owner

Related posts about mvc

Related posts about oop