Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKonrad Pilch
2,435 PointsIs this good article? OOP PHP
Is this a good article ?
Is that the right way to use OOP? registratoin , logout etc.. ?
SHould i take my time and deep dive in it trying to copy it in my own code and make it work ?
2 Answers
Ted Sumner
Courses Plus Student 17,967 PointsI think you need a better foundation in PHP if you do not understand what is being talked about in the article. I suggest you take the PHP tracks to get the foundation you need. There is also a course in OOP that would help. I also think that a good basis in PHP is good prior to the framework courses you cite above. I have only taken 1/2 of the frameworks course and not the laravel course. Take your time and get the foundation of knowledge before you push yourself to advance.
The courses in PHP and databases talk about security steps you need to take to protect your site from attacks. You really NEED to understand that material before you go live with any sites that take user input.
Ted Sumner
Courses Plus Student 17,967 PointsI am far from an expert, but it appear ok to me. I would really look at the html tag above the head as we have not done that here and I am not sure they do everything to protect against hacks on the input. I may use this a base for registration for my site after I confirm or change it to protect against attacks.
Konrad Pilch
2,435 PointsThis is soo hard : p complex : p
I will try to study it then : p i tried to downolad link, but it didnt work. The article is kinda hard to understand whats hes asking to do and it misses some action from my point of view but if its a good one, then ill try to learn the OOP real life example with login system .
Thank you for your answer ill try to see it in deep.
btw, do you think starting in a framewokr like codeigniter, or laraver5 , is a good idea now? while there are updated tutorials on how to use them , especially laraer, that should teach pure PHP as well right? like bootstrap teachers how to strucutre the html better for example and css too .
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsI did all the courses here at treehouse, as well as did the OOP as well, though, what i just have in mind that i think i havent finished the Second Part of Mike Shop , i believe they do and explain more there? Ill checkit out again , stuff like construct, etc.. i know how it works, i just kinda hit a brick wall : p hard to say .
I will check here again and do some tutorials here again, thank you.
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsYou have six badges in PHP and I have about 30. I have not completed all of the PHP courses on the site. I do not think you have done all the PHP courses available unless you have a different profile. Try looking in the library for many more courses that are not in a track.
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsSure i did have more badges, and i had same facilities as you :), I did have a different profile .
But you know what, im going to do it all over again . Its good to coeback sometimes and re-do the lets say easy stuff, im gonna focus now 100% on treehouse course untill i do them one by one, lets see how it works .
Hopefuly, the second part code is still updated.
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsExcellent. I know I have watched the OOP videos 5 or 6 times to get an understanding. Starting over can be a very good idea to make it sink in.