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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:56:17+00:00 2026-06-13T02:56:17+00:00

the situation is like this, i was asked to use the header and footer

  • 0

the situation is like this, i was asked to use the header and footer of a dynamic site
made up of yii into another site hosted in a different server/host..
i created a controller and view in the dynamic site, now the question is
how to call that within the other site to use it , let’s say the site is html or php ?
given this example url of the controller and action that i created

http://www.example.com/controller/display/header
http://www.example.com/controller/display/footer
  • 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-13T02:56:18+00:00Added an answer on June 13, 2026 at 2:56 am

    This, isn’t going to work in the context your thinking. More so if its PHP based, as your not going to get the PHP functionality that makes the header or footer what it might be. As PHP renders server side when called on.

    You could if its static HTML only maybe use cURL to access the file, and get the contents of it (again, the rendered HTML if php based). But other than that, there is so many things from the browser side to the server side of the remote server that are going to hinder your ability of doing what I think your trying to do, cause if it was that easy people would be hijacking sites left and right..

    You could in concept open these remote locations in a frame/iframe but you won’t have control over there content. I’d say if you are the owner of both sites in question or working in collaboration with the other site owner. Then you two should come up with a means of delivering the content of footer/header to your site, that doesn’t break so many policies and risk serious security breaches.

    In all though I can’t imagine why you wouldn’t just clone the look/feel through normal templating via HTML/CSS. Anything else just sounds a bit shaddy.

    SomeKittens makes a valid point. But I just wanted to put my 2 cents in.

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

Sidebar

Related Questions

This question seems to have been asked before, but I feel like my situation
I have a situation like this. I have scrollpane whose viewportView is a JPanel
i have situation like this: class IData { virtual void get() = 0; virtual
I've got a situation like this: Table: FunTable ItemKey ItemName ItemPriceEffectiveDate ItemPrice 11 ItemA
I have situation like this: user submits form with action='/pay' in '/pay' I have
So I have a situation like this: A needs to call B service and
I have a situation like this: +------------------------------------------------------------------------------+ | | | +---------------------------------------------------+ | | |
I have a situation like this: start(); <Some code> end(); I want start() function
I haven't been able to find anything for a situation like this. I have
Situation is like this: There are independent 5 services. Each service consists of a

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.