Welcome to WebmasterWorld Guest from

Forum Moderators: buckworks

Message Too Old, No Replies

OOP in web development



9:01 am on Sep 5, 2004 (gmt 0)

10+ Year Member


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.



2:15 pm on Sep 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

You might have some better luck in the PHP Forum [webmasterworld.com].


3:21 pm on Sep 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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


7:24 pm on Sep 5, 2004 (gmt 0)

10+ Year Member

Thank you - i'll go try that other forum too then.


12:22 am on Sep 6, 2004 (gmt 0)

10+ Year Member

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! :)


Featured Threads

Hot Threads This Week

Hot Threads This Month