Structure of a modular application

52 views
Skip to first unread message

Uwe Wagner

unread,
Mar 15, 2019, 8:38:33 AM3/15/19
to Fat-Free Framework
I have successfully ported a codeigniter application to Fatfree. Now I would like to create a larger application. What is the best way to build a modular application? It should be possible to have controllers, models and views for each module.
From Flask/Python I know the concept of blueprints and would build something similar. Are there any recommendations?

ved

unread,
Mar 17, 2019, 6:58:09 PM3/17/19
to Fat-Free Framework
Hi,

That will depend on what exactly do you mean by "modular".
I generally use composer and then the autoloadernamespaces and dynamic route handlers to achieve some sort of organizational structure much like you mentioned.
F3 is very flexible and you can manipulate the framework's router and system variables to fit to your app's architecture.
After that it pretty much depends a bit on personal preference, organizational rules, design specs, size and type of app, etc. 

Good luck.
Reply all
Reply to author
Forward
0 new messages