From 2f04de56926f460ff476d4386d9adf0a643af084 Mon Sep 17 00:00:00 2001 From: Hion-V Date: Sat, 25 May 2019 00:01:04 +0200 Subject: [PATCH] Updated comments and variable defs --- dev_mvc/index.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dev_mvc/index.php b/dev_mvc/index.php index 64c962a..e2e9c84 100644 --- a/dev_mvc/index.php +++ b/dev_mvc/index.php @@ -19,14 +19,10 @@ include_once("./controller/ActionHandler.php"); session_start(); //Execute Actie zo nodig. ActionHandler::doAction(); - - - -//Store de geselecteerde pagina in variabele $page -$page=HUtils::getPage(HUtils::FETCHPOST); - +//Store de geselecteerde model in variabele $model +$model=HUtils::getPage(HUtils::FETCHPOST); //Model side operaties die afgerond moeten worden voor de paginacontent in wordt geladen -$path = "./model/model_".$page.".php"; +$model = "./model/model_".$model.".php"; if($page != ""){ if(file_exists($path)){ include_once($path);