I have a question about how to implement a thing correctly following the model controller view, I explain.
I am making a website where posts can be created, and obviously created posts are updated, this is what I don't know how to do.
It occurred to me to implement it as follows:
1st -> When you came to the view where you wanted the posts to appear, it called a controller through an include.
This controller is responsible for taking the posts from the database, and writing them correctly in HTML, then in the view, since with the inlude copy the literal content of the controller looked correctly everything worked fine.
However, I was suspended because of the fact that according to the teacher, I don't understand the model view controller, since a view can never have an include of a controller.
I don't know how to do it any other way and I need help to approve haha greetings I hope your answer :]
pd: I have not put code because at the moment I do not have a file in which everything is understood correctly, I hope I have explained the problem well so that they understand it without the need for code.