I have a page that shows info from MySQL. It is for an online education
site. It uses different classes arranged in a hierarchy. Each lesson is
roughly laid out like this:
Lesson
|-Intro
|
|-Section
| |-Procedure
| |-text, video, images
|
|-Section
| |-Procedure
| |-text, video, images
|
|-Summary
I have all the classes working properly for displaying info from the
database. Now I am building the admin site.
Where should I put the update/insert/delete code? Would those go inside the
classes? Should I use the lesson object when doing the maintenance? Or,
should I just have a separate page that handles the database stuff and only
use the objects to display the data from the database?
I am sure many of you have done this sort of thing before. Any help would be
appreciated!
site. It uses different classes arranged in a hierarchy. Each lesson is
roughly laid out like this:
Lesson
|-Intro
|
|-Section
| |-Procedure
| |-text, video, images
|
|-Section
| |-Procedure
| |-text, video, images
|
|-Summary
I have all the classes working properly for displaying info from the
database. Now I am building the admin site.
Where should I put the update/insert/delete code? Would those go inside the
classes? Should I use the lesson object when doing the maintenance? Or,
should I just have a separate page that handles the database stuff and only
use the objects to display the data from the database?
I am sure many of you have done this sort of thing before. Any help would be
appreciated!
Comment