Hello,
I finished studying the theory for OOP for PHP5, I'm still trying to understand the real utility if this instead of procedural code.
The reason why I wanted to switch is because doing website for years in PHP it always happened that once I had to change something without watching the code for weeks I was lost, I couldn't understand my code, mostly because there was a lot and all disorganized.
Now I'm in a situation where I'm making this site where an user can insert data divided in 5 steps. How exactly can I divide this if not in the procedural style with if or switch statements for the steps?
Maybe I'm just missing the point of OOP, I got the re-usability thing and I'm using it but for me its just calling same functions to feed data to the html page without making sql queries everytime in every page.
Plus I'm used to write (for a section for example) all the code all in one page to avoid making infinite files but maybe I should start doing the opposite? I'm really confused
I just want an understandable code to maintain. Maybe I should start using a PHP framework? I saw some Igniter features and seems pretty cool, but I'm sure I will waste too much time learning the system right now that doing this -kinda urgent- site myself.
Any suggestions? Maybe some tutorials that can clear my mind in using OOP in real life situations?