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

Related Questions

I have web application using SpringFramework3.0.3.RELEASE, developed in Eclipse with m2eclipse plugin and deployed
I have developed a web application for mobile phones that uses JavaScript Google API.
I'm working on a web based application that belongs to an automobil manufacturer, developed
I have a Blackberry project developed in Eclipse using the Blackberry Plugin for Eclipse.
I am a good PHP developer and wanted to develop a large scale web
I am totally new to Spring Web Services and so what concept should I
Let's say we are developing an E-Commerce Web application for a small to medium
Okay, so this will probably be closed or whatever, I don't care. I have
I've been looking around for some time and couldn't find a clear explanation for
Having properly configured a Development server and a Production server, I would like to

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.