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 8202275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:07:31+00:00 2026-06-07T07:07:31+00:00

I have a website that needs to have a variation of pages. For example:

  • 0

I have a website that needs to have a variation of pages.

For example:

website.com/variation1/page1
website.com/variation2/page1
website.com/variation3/page1

All of which has the same DB and has the same function. The only difference is that these variations differs in page template ie. Header, Footer, Content, etc. This is for the purpose of analyzing page visits.

With that, what is the best way to do this? In Yii, there is a common layout used so header/footer depends on the layout. In this case, the header/footer should be specific to each page so the user can just modify the header/footer/content of a specific page without affecting other pages.

So, again what is the best approach for this?

Thank you in advance.

EDIT:

I think I know what I’m looking for here:
Is there a way to override/add from a layout the header in a view file?

  • 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-06-07T07:07:33+00:00Added an answer on June 7, 2026 at 7:07 am

    I just found out a possible solution to approach page variations.

    Under my view directory I created a directory varation which contains the pages i.e.

    /view/variation/1/page1.php
    /view/variation/2/page1.php
    

    So when I want to render the varations I’ll call each in the controller with parameters included.

    Ex. $this->render('variation/1/page1') somewhat.

    And in each page if you want to use a specific header info you may use

    Register Meta Tag

    Register Script File / Script

    Register CSS File / CSS

    Let me know if there are better ways of doing this.

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

Sidebar

Related Questions

I have a website that I'm making that needs a background resizer. Currently, I
I have a WordPress website that needs to have its articles in multiple languages.
I have a webforms website that needs to be set either to danish (DK)
I have images on my website that the user needs to allow the Facebook
I have an application that needs to check a website feed every second. Sometimes
I have been working on a website that has some images that I need
Problem I have some pages that need dynamic data from website to generate output
I have a website that uses one Action method which passes a pagename to
I have a registration form for a website that needs to check if an
I have a website that needs to store two sets of user data into

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.