⊗ppMVUFmWPr 2 of 35 menu

Principles of MVC Operation in PHP

Let's consider how a website on MVC works. Everything starts when the user enters an address into the address bar (most often by clicking a link). At this moment, the controller figures out what exactly the user wanted and asks the model to provide the corresponding data. The model gives the data to the controller. The controller receives this data and sends it to the view. The view displays the data in a formatted and styled manner.

This results in a separation of duties: the controller does not know how to get the data - it simply asks the model for it; the view does not know where the data comes from - it simply displays it.

I am sure that so far this all sounds unclear, so especially for you, I have made a tutorial mini framework that uses the MVC approach. First, I will teach you how to use this framework so that you understand exactly how to develop using MVC. And then you yourselves, following my instructions, will write such a framework in OOP.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline