I thought I’m going crazy: As soon as I moved header and footer into own php include files the source code viewer of Firefox showed me an alarming DOM structure with duplicate html and head tags:
As soon as I merged the header include back into a main php file it disappeared. At first I thought this is a serious bug on Wappler’s site of things. But, then I looked at it in Chrome and their everything is fine:
Can anyone explain what is going on? Is Firefox broken in displaying mutiple thml, body, head tags or is Chrome not interpreting it right.
It seems it has to do something with the " <!-- Wappler include head-page=“index.php” " comment, as this is present in Chrome but not in Firefox (Firefox shows instead the duplicate html, body elements).
I created a new project, just to be sure. So it’s everything vanilla. I create the index.php, include a header(menu) and a footer and seperate it with own files via the “move to include file” button:
Hm. Further investigation helped to get rid of that issue. Unfortunately, two things popped up. Firstly, The right panel for app structure is gone in my _menu.php (Maybe I played around with it too much)
Secondly, Is there no sound way to include general head-information in one central file? I tried several ways but none would work, be it something like: or or a php include like <?php include '_head.php'; ?>
A php include would load the file indeed but the and tags to load app connect, boostrap and the like seem not to “work” for the rest of my dynamic content (getting stuff from a MySQL Database).
That does only work, when I include those information (as I said all those dmX AppConnect javascript loadings etc.) directly in the respective php file and not some included file.
That is kind of disappointing (if that is so), as I hoped there is a more central way to store those informations, so that not all callings of stylesheet or script files has to be put in and maintained with every single file