Welcome Guest, Not a member yet? Register   Sign In
How to design forums using MVC?
#1

[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!




Theme © iAndrew 2016 - Forum software by © MyBB