From d386266ffb0bb54bf4a73df368038fa0f47370c8 Mon Sep 17 00:00:00 2001 From: Jefferson Escascela Garcia Date: Sun, 4 Feb 2018 17:07:51 -0200 Subject: [PATCH] Adicionado arquivos do exemplo --- controller/controlador.php | 19 +++++++++++++++++++ index.php | 9 +++++++++ model/modelo.php | 16 ++++++++++++++++ view/view.php | 15 +++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 controller/controlador.php create mode 100644 index.php create mode 100644 model/modelo.php create mode 100644 view/view.php diff --git a/controller/controlador.php b/controller/controlador.php new file mode 100644 index 0000000..dff91df --- /dev/null +++ b/controller/controlador.php @@ -0,0 +1,19 @@ +getMensagem(); // Chama o método getMensagem() do modelo + require_once 'view/view.php'; // Carrega o arquivo view.php + } +} +?> \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..e80dba7 --- /dev/null +++ b/index.php @@ -0,0 +1,9 @@ +index(); // Chama o método index() do controlador +?> \ No newline at end of file diff --git a/model/modelo.php b/model/modelo.php new file mode 100644 index 0000000..4f99599 --- /dev/null +++ b/model/modelo.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/view/view.php b/view/view.php new file mode 100644 index 0000000..ec74c46 --- /dev/null +++ b/view/view.php @@ -0,0 +1,15 @@ + + + + + + MVC PHP + + + + + \ No newline at end of file