View Full Version : Building a custom CMS based on PHP (OOP)

12-07-2010, 02:12 PM
Hi Guys,

I am looking to build a CMS from the scratch using PHP 5.3. I am going to use the Object Oriented Programming approach. I have a few questions and thought to post on CF to get your ideas. For example the CMS is about Games website, Do you think the following Class structure is good?

1. Admin Class
Will hold the Admin_Login, Admin_Logout etc Methods

2. Admin_Games (will extend Admin Class)
Will hold the Add_Game, Update_Game, Delete_Game methods

3. Admin_Users (will extend Admin Class)
Will hold the Add_User, Update_User and Delete_User methods

Similarly for the front-end

1. Site Class
Will hold normal features such as Login/Logout, Page Views etc.

2. View Games Class (will extend Site Class)
Will hold View_Game, Rate_Game and Play_Game methods.

Is this approach good?

Jack Ellis
12-08-2010, 12:23 AM
Trial and error my good man :) Code it up and see if it works well etc.