r/PHPhelp • u/AMINEX-2002 • Jan 04 '26
OOP implementation in php
we started learning backend since 1er December, now we are about to start mvc ...
i got what oop is what for , why using it , abstraction , inheritance ....
but i dont know how to use this , like in my page should i put inserted data in classes then pass it to repo classes to insert it in sql or where to put the functions ( belongs to who ) , and w ejust start learning diagrams (class diagram ) so that kinda blow my mind
9
Upvotes
View all comments
Show parent comment
1
u/itemluminouswadison Jan 04 '26
it's just pseudocode. you'd create your own record in an sql table to represent a page probably, right? or whatever kind of app you're building (you didn't leave any details). and you'd deserialize into an object and use that across the back-end code.