<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/style.css"> <link href='http://fonts.googleapis.com/css?family=Lekton' rel='stylesheet' type='text/css'> </head> <body> <?php require_once "models/viewModel.php"; $views = new viewModel(); $views->getView("views/header.html"); $views->getView("views/home.html"); $views->getView("views/footer.html"); ?> </body> </html>
<h1>First Day</h1> <?php require_once "models/view_model.php"; $views = new viewModel(); $views->getView("views/header.html");
<?php include 'models/viewModel.php'; echo 'home controller'; $vm = new viewModel(); if (!empty($_GET["action"])) { if ($_GET["action"] == 'home') { $data = array("name" => "orcun"); $vm->getView("views/homeView.php", $data); } else { if ($_GET["action"] == "contact") { $data = array("name" => "contact"); $vm->getView("views/homeView.php", $data); } } } else { $data = array("name" => "orcun"); $vm->getView("views/homeView.php", $data); }
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/style.css"> <link href='http://fonts.googleapis.com/css?family=Lekton' rel='stylesheet' type='text/css'> </head> <body> <?php require_once "models/viewModel.php"; $views = new viewModel(); $views->getView("views/header.html"); $views->getView("views/contact.html"); $views->getView("views/footer.html"); ?> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/style.css"> <link href='http://fonts.googleapis.com/css?family=Lekton' rel='stylesheet' type='text/css'> </head> <body> <?php require_once "models/viewModel.php"; $views = new viewModel(); $views->getView("views/header.html"); $views->getView("views/blogs.html"); $views->getView("views/footer.html"); ?> </body> </html>