nagihcim1 Posted November 10, 2011 Share Posted November 10, 2011 I know what OOP PHP is but I can't grasp it exactly in relation to a website. For instance in order to be considered OOP PHP would all your pages need to be "webpage" objects with variables like "header", "footer" and "content" and then passing all the pages html to this class. Would it still be considered OOP PHP if the html of the webpage was written out for each page (assume we are coding a car dealership) and only objects like "car" and "salesman" were created. Quote Link to comment https://forums.phpfreaks.com/topic/250820-what-is-considered-oop-php/ Share on other sites More sharing options...
trq Posted November 10, 2011 Share Posted November 10, 2011 For to be considered object oriented it would usually implement already existing design patterns. Just because you jam functionality into classes does not mean your site is uses oop. Quote Link to comment https://forums.phpfreaks.com/topic/250820-what-is-considered-oop-php/#findComment-1286907 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.