Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
OOP in web development Hevymetal
I know the basics of
object oriented programming but i don't know how and where to use OOP in web development - lets say in PHP language.
Can someone describe me a simple class diagram of a web project - its variables, methods and the description of this object itself.
You might have some better luck in the PHP Forum [ webmasterworld.com]. Easy_Coder
An example... and I'm not sure if php supports objects would be:
A Customer Object that is capable of managing all functions relating to a customer. Here's brief listing of items you'd want to consider for a customer object:
- Save Method
- Update Method - Delete Method
- ShopperID Property
- CustomerID Property - FirstName Property - LastName Property - Address Property - City Property - State Property - Zip Property Hevymetal
Thank you - i'll go try that other forum too then. danieljean
One of the main design patterns in OOP for the web is the MVC pattern. Struts is one I'm familiar with in Java, but a search for "PHP MVC framework" yields a few results.
There are a few patterns that are incredibly useful in more complex web development projects, and I can't for the life of me understand why/how someone would use procedural code for the same tasks. MVC however is the best place to start.
Have fun! :)