CodeIgniter Forums
How to design forums using MVC? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: How to design forums using MVC? (/showthread.php?tid=53774)



How to design forums using MVC? - El Forum - 08-08-2012

[eluser]pluus[/eluser]
Hello, CI masters.

I'm trying to apply MVC pattern to program multiple forum(board) pages.
The view part is fine - it's easy, but I cannot draw a clear line between
model's and controller's tasks.

For model, should I create classes representing the databases? If so,
what kind of basic functions should the model classes have or
provide to controllers?

For controller, should controller classes let 'model classes' deal
with database connections and do something different - like sending data
to views or dealing with sessions...

:/ Would be there any practical tutorials for it?

Thank you!