It's helpful to understand an object-relational mapping (ORM) mapping model . ORM is a method of accessing database data using object-oriented syntax rather than using SQL. This means you can write your database queries in familiar PHP, although there may be times when you'll want to use SQL.
Many PHP frameworks have their own built-in ORM. For example, Laravel uses the Eloquent ORM. Others use an open source ORM like Doctrine .
Understanding how web servers like Apache and Nginx work is helpful. You may need to configure server files to make your application work optimally.
You'll probably be doing a lot of your development locally , so you'll costa rica phone number data need to know about localhost , too. Another option is to build and test your app in a virtual environment using Vagrant and VirtualBox
PHP frameworks typically follow the Model-View-Controller (MVC) design pattern. This concept separates data manipulation from data presentation.
Model View Process Controller
Model-View-Controller Process (Image source: Wikimedia Commons)
The Model stores the business logic and data for the application. It passes the data to the View , the presentation layer. The user interacts with the View and can enter instructions through the Controller . The Controller passes these commands to the Model, and the cycle continues.
In short, the Model is about data, the View is about appearance, and the Controller is about behavior.
The architecture of the Model View Controlled
-
- Posts: 183
- Joined: Mon Dec 23, 2024 3:49 am