Render full header from APIRender header and footer in custom controllerCannot customize header block by custom moduleRemoving Header and Footer from CMS pageEditing Magento headerremove header part from some .phtml pagesHeader whitespaceRemoving links from headerRender column based on another column's valueRest API (Consumer is not authorized to access %resources)Magento 2 : How to remove signout from my account section at header?

Which was the first story featuring espers?

What is the English pronunciation of "pain au chocolat"?

awk assign to multiple variables at once

Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?

What fields between the rationals and the reals allow a good notion of 2D distance?

How can ping know if my host is down

What is Cash Advance APR?

How to explain what's wrong with this application of the chain rule?

What does Apple's new App Store requirement mean

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?

How to make money from a browser who sees 5 seconds into the future of any web page?

Is it necessary to use pronouns with the verb "essere"?

What kind of floor tile is this?

Does Doodling or Improvising on the Piano Have Any Benefits?

It grows, but water kills it

What to do when eye contact makes your coworker uncomfortable?

How do I fix the group tension caused by my character stealing and possibly killing without provocation?

Why is it that I can sometimes guess the next note?

Biological Blimps: Propulsion

Why should universal income be universal?

Doesn't the system of the Supreme Court oppose justice?

Can I say "fingers" when referring to toes?

How do you make your own symbol when Detexify fails?

Quoting Keynes in a lecture



Render full header from API


Render header and footer in custom controllerCannot customize header block by custom moduleRemoving Header and Footer from CMS pageEditing Magento headerremove header part from some .phtml pagesHeader whitespaceRemoving links from headerRender column based on another column's valueRest API (Consumer is not authorized to access %resources)Magento 2 : How to remove signout from my account section at header?













1















I need to pass the whole header to another website through an API.



Do not ask why, this is the task.



I asked some help from one of my colleague, he suggest me to create a controller, what has a layout and block only with header, get it from API with curl or file_get_contents (does not matter).



Somehow I feel this is a workaround.



Does anybody do like this, is there a more elegant solution?










share|improve this question






















  • there are magento wrapper classes for the methods you mentioned. use them instead

    – Philipp Sander
    20 hours ago















1















I need to pass the whole header to another website through an API.



Do not ask why, this is the task.



I asked some help from one of my colleague, he suggest me to create a controller, what has a layout and block only with header, get it from API with curl or file_get_contents (does not matter).



Somehow I feel this is a workaround.



Does anybody do like this, is there a more elegant solution?










share|improve this question






















  • there are magento wrapper classes for the methods you mentioned. use them instead

    – Philipp Sander
    20 hours ago













1












1








1








I need to pass the whole header to another website through an API.



Do not ask why, this is the task.



I asked some help from one of my colleague, he suggest me to create a controller, what has a layout and block only with header, get it from API with curl or file_get_contents (does not matter).



Somehow I feel this is a workaround.



Does anybody do like this, is there a more elegant solution?










share|improve this question














I need to pass the whole header to another website through an API.



Do not ask why, this is the task.



I asked some help from one of my colleague, he suggest me to create a controller, what has a layout and block only with header, get it from API with curl or file_get_contents (does not matter).



Somehow I feel this is a workaround.



Does anybody do like this, is there a more elegant solution?







magento2.2 header renderer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









vaso123vaso123

1439




1439












  • there are magento wrapper classes for the methods you mentioned. use them instead

    – Philipp Sander
    20 hours ago

















  • there are magento wrapper classes for the methods you mentioned. use them instead

    – Philipp Sander
    20 hours ago
















there are magento wrapper classes for the methods you mentioned. use them instead

– Philipp Sander
20 hours ago





there are magento wrapper classes for the methods you mentioned. use them instead

– Philipp Sander
20 hours ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266752%2frender-full-header-from-api%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266752%2frender-full-header-from-api%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

419 nièngy_Soadمي 19bal1.5o_g

Queiggey Chernihivv 9NnOo i Zw X QqKk LpB