Open JeroenHeemskerk opened 5 months ago
Op veel plaatsen staat nog HTML code buiten functies https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/index.php#L1-L9 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/contact.php#L1-L9 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/contact.php#L67-L147
Of er staat PHP code BUITEN functies https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/contact.php#L13-L59 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/header.php#L1 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/menu.php#L2-L6 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/about.php#L1-L3
Dit is allemaal NIET de bedoeling,
De bedoelding is dat alle files beginnen met <?php en dat alle echo's in functies staan dus https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/footer.php#L1 Wordt:
<?php
<?php function showFooter() { echo "<footer>© Copyright 2024 Achraf Reyani</footer>"; } ?>
en zou ik in index.php opnemen in plaats van een eigen file
Op veel plaatsen staat nog HTML code buiten functies https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/index.php#L1-L9 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/contact.php#L1-L9 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/contact.php#L67-L147
Of er staat PHP code BUITEN functies https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/contact.php#L13-L59 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/header.php#L1 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/menu.php#L2-L6 https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/about.php#L1-L3
Dit is allemaal NIET de bedoeling,
De bedoelding is dat alle files beginnen met
<?php
en dat alle echo's in functies staan dus https://github.com/AchrafReyani/educom-webshop-basis/blob/c0d27255493e0c696902ee526f99974169c62981/footer.php#L1 Wordt:en zou ik in index.php opnemen in plaats van een eigen file