08-29-2019, 07:09 PM
There are dozens of php html structures as follows...
<body>
<section></section>
<nav></nav>
<section></section>
...
</body>
Where <nav></nav> is the shared part.
The menu content in nav also uses the php template syntax <?php xxxx ?>
I put the content into nav.php and put it in view/common/nav.php
Consult https://codeigniter4.github.io/userguide...index.html
I hope to insert the code from here.
<body>
<section></section>
Insert code to come in here
<section></section>
...
</body>
, and keep html integrity,
What should be done best?
<body>
<section></section>
<nav></nav>
<section></section>
...
</body>
Where <nav></nav> is the shared part.
The menu content in nav also uses the php template syntax <?php xxxx ?>
I put the content into nav.php and put it in view/common/nav.php
Consult https://codeigniter4.github.io/userguide...index.html
I hope to insert the code from here.
<body>
<section></section>
Insert code to come in here
<section></section>
...
</body>
, and keep html integrity,
What should be done best?