Jump to content

Tutorial On Classes in a Web PHP/MySQL App


Vmusic

Recommended Posts

Hi,

  Can somebody recommend a tutorial that shows how classes are used in a web app say with PHP/MySQL.

 

  The part that gets confusing is the interaction between classes.

 

    For example - pretend it's a web site/app that maintains a database of cars for sale.

There might be:

  • abstract db classes to push/pull data
  • a vehicle class or auto class
  • class(es) that manage or interact with the interface (makes the html)

 

but how do these different classes work together or interact ? Can somebody recommend a good tutorial that explains this in clear easy to understand terms.... maybe with a simple example like this auto web site

 

PLEASE - don't recommend a beginner tutorial on what a class is, or how to build a single class. I know this

 

Thanks!!

Classless in Columbus

Link to comment
Share on other sites

There are several things you can do.

 

1. Read about OOP Design Patterns (there are some tutorials on PHPferaks

2. Take a look at Zend Framework to see how it implements MVC (model-view-controller) pattern (there's an example of app there)

3. Get some open source application and see how it's built.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.