OOP PHP - Simple CRUD system and creative lock [closed]

0

I'm studying Object Orientation applied to PHP and I'm getting lost in the basics; it does not get into my head how to organize the scripts and classes. I studied Java OO and have no major problems, but started my studies in PHP in procedural form and now I can not understand how it works, for example, the class containing 'main' in Java, responsible for making things work; as this happens in PHP.

I'm creating a simple CRUD application, containing:
- A welcome page

- A Login page;
- And while logged in, you will have access to a registration page, and a registration update.

I have read a lot of codes, articles and tutorials on PHP OOP, but my mind is blocked from understanding this.

What would be the way in PHP's good programming practices to create this application? A separate connection script or integrated into the pages? Use abstraction or not? (Users with access would have equal permissions, to register and update registrations). All files in the same folder, or all separate, even if it's just a learning project?
I read a little about MVC, is it worth studying in depth?

How would you do that?

    
asked by anonymous 30.05.2015 / 15:20

1 answer

2

Of course it is useful to study MVC, I started to study and I am already developing a system based on it. I even put a question here at the beginning because in fact a big knot in the head to assemble logic, but once you see the system gets very clean and organized. I recommend the following tutorial, it has what you need for your question:

link

Maybe you should have seen it already, but I think it's a good example to start.

A free tip: Just look at the logic of the system, you do not need to stick to it strictly, you will have things that will be easier to do in your own way using their logic.

    
30.05.2015 / 22:12