Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2008
    Thanked 2 Times in 2 Posts

    Building a custom CMS based on PHP (OOP)

    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?

  • #2
    New Coder
    Join Date
    Jun 2009
    West Sussex
    Thanked 4 Times in 4 Posts
    Trial and error my good man Code it up and see if it works well etc.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts