diff --git a/controllers/note-create.php b/controllers/note-create.php new file mode 100644 index 0000000..f869b9a --- /dev/null +++ b/controllers/note-create.php @@ -0,0 +1,6 @@ + 'controllers/index.php', - '/about' => 'controllers/about.php', - '/contact' => 'controllers/contact.php', - '/learn' => 'controllers/learn.php', - '/mathe' => 'controllers/mathe.php', - '/note' => 'controllers/note.php', - '/notes' => 'controllers/notes.php', - '/addition' => 'controllers/addition.php' -]; +$routes = require ('routes.php'); function routeToController($uri, $routes) { if (array_key_exists($uri, $routes)) { diff --git a/routes.php b/routes.php new file mode 100644 index 0000000..45a5de4 --- /dev/null +++ b/routes.php @@ -0,0 +1,12 @@ + 'controllers/index.php', + '/about' => 'controllers/about.php', + '/contact' => 'controllers/contact.php', + '/learn' => 'controllers/learn.php', + '/mathe' => 'controllers/mathe.php', + '/note' => 'controllers/note.php', + '/notes' => 'controllers/notes.php', + '/addition' => 'controllers/addition.php', + '/notes/create' => 'controllers/note-create.php' +]; \ No newline at end of file diff --git a/views/note-create.view.php b/views/note-create.view.php new file mode 100644 index 0000000..075abf7 --- /dev/null +++ b/views/note-create.view.php @@ -0,0 +1,29 @@ + + + +
+
+
+
+
+
+
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+
+
+
+ \ No newline at end of file diff --git a/views/notes.view.php b/views/notes.view.php index 42cce6e..13ac33f 100644 --- a/views/notes.view.php +++ b/views/notes.view.php @@ -3,6 +3,7 @@
+ +

+ Create Note +

\ No newline at end of file diff --git a/views/partials/head.php b/views/partials/head.php index 1f4ad04..3692e6b 100644 --- a/views/partials/head.php +++ b/views/partials/head.php @@ -4,7 +4,7 @@ - + Demo