What is included in mini framework php?

Begin to understand how to build web applications. Learned about routing. For example I have a task to make a website with 5 pages, there are the products and categories menu, and all in fact, such a site card. And here I am a beginner want to create a mini framework(while your bike) in the future for development. It will have its own admin panel small to fill goods and the like.

What I know now, routing the gist of it I understand, control is done with him. Now we need to do something with the database, while all the procedural, will need to add, change, delete, edit DB. As smarter to create a function that would be there were 4 pieces (add, modify, delete, edit) and then on the settings to do all this only with a different website blocks are only 4 functions.
Think it still needs a function to add files to the server and delete files from it.

While in my head spinning such thoughts. What do you think? I would like to see a list of what is missing and preferably in order from most important. Or what would you have done the points from the first to the last within the site(on procedural), on your bike?
July 2nd 19 at 14:06
5 answers
July 2nd 19 at 14:08
Solution
Routing of course is fine, but what about the rest? I never saw the abbreviation MVC. Do you know what model? What is it? In the controllers? Read about it.
Not suggest, of a man utterly confusing. MVC in the understanding of most web developers is not MVC in the understanding of other specialists. To develop a web application on a normal MVC for the web is anti-pattern rather suspect, it is physically impossible, because there is no continuous connection to the server. - Cecelia78 commented on July 2nd 19 at 14:11
July 2nd 19 at 14:10
Solution
view symfony
July 2nd 19 at 14:12
Solution
Start with a basis and understanding of the underlying architecture.

As smarter to create a function that would be there were 4 pieces (add, modify, delete, edit) and then on the settings to do all this only with a different website blocks are only 4 functions.
No way.
So you can make only one unified role in the system.
You need to create an ORM which will accept commands from the main control system and interact with the data store through the methods of the manipulators.
July 2nd 19 at 14:14
Solution
take any micro framework slim-type or silex install and see how it is done.
even if you are not going to use them, at least to look at interfaces and functionality.
for DB you need to look for a separate library.
July 2nd 19 at 14:16
Solution
Read the book of Matt Zandstra templates and design, then do not worry and take yii2. The framework is relatively simple, convenient and allows you to understand the MVC pattern, which is mentioned above (or other framework such as Symfony, CodeIgniter, etc.). Then do something based on the experience.
If doing for someone, then take ready-made solutions(framework or CMS), have pity on people or yourself in the future, if you will maintain this code ourselves.
well You give, Symfony, Codeigniter has put in a series))) - Cecelia78 commented on July 2nd 19 at 14:19

Find more questions by tags PHPFrameworks