F3 and model-view-controller architecture

60 views
Skip to first unread message

Gosforth

unread,
Sep 21, 2017, 11:02:01 AM9/21/17
to Fat-Free Framework
One question:

F3 is mvc architecture framework, right?
Basing on great examples by Ikkez I see we have models, views, controllers ...and templates.
So in F3 the role of view plays template. What is the role of view then in F3?
Sure, in some "philosophical" approach because we can eliminate view I see (possible to avoid this step).

Regards,

G.

ved

unread,
Sep 21, 2017, 1:12:48 PM9/21/17
to Fat-Free Framework
No, F3 isnt' really a "MVC framework" so it should stay out of the developer's way when in comes to programming patterns, planning the app, etc.

People code in the MVC pattern in F3 because MVC is well understood and a good way to code a lot of apps.

However, you may code in any other way you see fit. 

Nuwanda

unread,
Sep 21, 2017, 5:20:52 PM9/21/17
to Fat-Free Framework
Good answer. The heated discussions all over the place about what constitutes MVC and how it should be properly employed just show that there's an awful lot of opinion out there.

What F3 does is give you a good platform for separation of concerns. What those concerns are and how you separate them are up to you. And that's all that matters. Something like Laravel seems far stricter on how you should structure your app.
Reply all
Reply to author
Forward
0 new messages