Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 203673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:23:58+00:00 2026-05-11T17:23:58+00:00

So basically, this is what I have. But is this a good practice? I

  • 0

So basically, this is what I have.

But is this a good practice? I started splitting up my admin.php file due to it growing in size.

However, I have a slight concern over how many files I could potentially end up with, and also problems to work with in case something may need to be updated over all the files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:23:58+00:00Added an answer on May 11, 2026 at 5:23 pm

    I had similar thoughts developing my own CMS engine. Eventually I end up with basicaly same solution as you did, but with Smarty, for logic-presentation separation.

    But now after some time I have different and much better solution. Make use of Command Pattern. You will need to separate your code into classes not in files like you did. You must establish Command Interface which all of your classes will implement. This way your admin page will act as Front Controler (another design pattern).

    Responsibilty of Front Controler is to gather all input from your page, that is in your case $_GET[“action”] , according to this actions you will have to instantiate Command objects and after this switch statement you will call $command->execute(); that will execute code contained in your Command classes.

    For your examle you will have : EditPageCommand, DeletePageCommand, NewPageCommand, etc.

    Avoid code separation in files. Try to use classes for everything and learn patterns. 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so basically I have this part of the .htaccess partly working, but not
This is basically a math problem, but very programing related: if I have 1
Alright so I have no idea how to even begin doing this But basically
I'm a good programmer, but I have zero network experience. Basically, I'd like to
I have (basically) this code - <script type=text/javascript language=javascript> $(document).ready(function() { $(#loadDiv).load(mypage.html, function(){ alert($(#someText).text())
Basically I have this string for example $str = 'По, своей 12' I need
Basically I have this string $str=word1 word2 word3; I need array( 'word1', 'word2', 'word3'
So basically I have this giant regular expression pattern, and somewhere in the middle
This is a follow up from my previous question I have this code basically
The problem is basically this, in python's gobject and gtk bindings. Assume we have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.