I have inherited an well organized site that I'm trying to figure out. The code is well organized and intelligently commented(!)
One of the smart things I see is some of the heavily used stuff like header.php which displays the banner and navigation, exists as both header.php and header.html. So here's the question. Generally, header.html is include_once all over the place.
I want to make changes to the navigation, say add a new tab. I am thinking that there is an automated way to generate header.html from header.php, but I'm not sure how that is typically done. I'm hoping there is a handy tool, or do I have to load the page, view source, then manaually cut/paste?
Thanks,
Eric
Compiling to html for speed - staying in synch
Moderator: General Moderators
Re: Compiling to html for speed - staying in synch
That kind of depends on how the system is set up. Looking through the code in header.php, can you see if it generates source which it then stores in header.html? If not, you could probably write a wrapper yourself using ob_start() and ob_get_clean() and writing to the file.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Compiling to html for speed - staying in synch
Don't see any output buffer capture.
I was thinking there might be an external tool to use.
I was thinking there might be an external tool to use.