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

  • Home
  • SEARCH
  • 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 578161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:13:51+00:00 2026-05-13T14:13:51+00:00

I have a web application developed using PHP. I want my users to select

  • 0

I have a web application developed using PHP. I want my users to select themes for their pages throughout the application.

  • Where should I start before using PHP themes?

What should I know about Themes in a PHP application?

Edit:

My question about themes is only about changing the color of the layout, not the images.

Suppose My ADMIN user will have white and Orange, but my staff user will have white and green…

How it can be done in PHP with CodeIgniter?

  • 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-13T14:13:52+00:00Added an answer on May 13, 2026 at 2:13 pm

    There are lots of directions you can go with this.

    1) “CSS ZEN”

    This is where the markup remains unchanged, but you totally change the design just by using CSS and images. Demonstrated very well on http://www.csszengarden.com/

    2) MVC Stylee

    This is where you create a model that represents the page data and then pass it to a view, which contains some inline echo statements. The idea is that you could send the same model to a totally different view so it could look entirely different, HTML and all. Cake PHP is a good start for this: http://cakephp.org/

    Example:

    <div class="content">
        <? echo $Page->Content ?>
    </div>
    

    3) Micro-Markup

    With this method, you add your own “special tags” to an HTML page. You then read in your plain HTML page and replace the special tags with the information you want to display. This is good if you want your templates to be recognisable to HTML guys that don’t know PHP and might break the PHP code in the MVC app.

    Example:

    <div class="content">
        <#Content#>
    </div>
    

    Out of all of these, MVC is a very structured way of achieving what you want – however, I listed the other options as they cater for specific scenarios that might be relevant to you.

    I have implemented the concept in all three of these, in situations that were appropriate for each.

    Regarding The Edit In The Question

    I imagine you’ll have “something” that represents your user – so it is as easy as:

    (In the event of just wanting to override a few settings…)

    <link href="style.css" type="text/css" rel="stylesheet">
    <?php if ($User->Type === USER_ADMIN) {  ?>
    <link href="admin.css" type="text/css" rel="stylesheet">
    <?php } ?>
    

    You can adjust this example in the following ways:

    • Use a switch statement if there will be many user types
    • If the replacement is total, rather than just a few overrides, you may want to completely swap the stylesheet.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 309k
  • Answers 309k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer C++ has two overloaded versions of this function. http://www.cplusplus.com/reference/clibrary/cstring/strstr/ const… May 13, 2026 at 10:01 pm
  • Editorial Team
    Editorial Team added an answer I was able to reproduce this. This appears to be… May 13, 2026 at 10:01 pm
  • Editorial Team
    Editorial Team added an answer use NHunspell. Spell Check, Th­e­saurus and Hyphen­ation: NHun­spell personally, i… May 13, 2026 at 10:01 pm

Related Questions

my background: i've been developing web applications using php and javascript for the past
I have finished developing the core of a web application I have been working
I am starting a web application project that will have an Adobe Flex front-end
I am a PHP developer who is seeking some guidance. I am developing a
I have developed an image uploading application that uses Flash to load an image,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.