I’m converting an old system of mine that has crappy old PHP code. It uses a header and a footer by simply every index page runs a require(“header.php”) at the top and footer in the bottom.
Now, I’ve created the new site’s header and footer in the EE template system. I can reach these by typing /layout/header for example. I then see a correct header and footer.
But it of course doesn’t work using require as it requires a physical file on the server.
Is there anyway I can run the EE header and footer, with PHP code, on my old php pages that I have yet to convert but still need to be online and working?
I can use file_get_content to read the EE header and footer, but the session of the user won’t be recognized and all users will appear logged out.
I hope I make myself understood here. If not, let me know and I’ll try to explain differently. Thanks
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.