JBZonda / educom-webshop-oop

0 stars 0 forks source link

De case 'webshop' is vrij lang, maak hier een paar functies voor om dit in te korten #21

Open JeroenHeemskerk opened 1 year ago

JeroenHeemskerk commented 1 year ago

https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L132-L174

Je kan bijvoorbeeld een functie maken die de acties afhandelt

 function handleAction($data) {

https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L136-L143 }

 function getShoppingCartData($data) {

https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L148-L152 }

 function getWebshopData($data) {

https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L155-L157 }