From 8a2bb432f71aec4e598c3655301d62cac1b5d857 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Fri, 16 Jun 2017 14:35:22 +0200 Subject: [PATCH] version 0.1 beta base nibiru framework, added missing controller file, and a minor bugfix for the navbar --- README.md | 4 +-- application/controller/indexController.php | 42 ++++++++++++++++++++++ application/view/templates/navigation.tpl | 2 +- 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 application/controller/indexController.php diff --git a/README.md b/README.md index 1c123a3..b5929d1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Nibiru -#####Version 0.1 beta +Version 0.1 beta ## Introduction
Nibiru is a rapid prototyping framework written in PHP and based on the MVC design pattern. Now one may say that writing
@@ -43,4 +43,4 @@ Engine Implementation.
The start is done, have success with PHP prototyping, and always remember to have fun!
-######Author: Stephan Kasdorf

\ No newline at end of file +Author: Stephan Kasdorf

\ No newline at end of file diff --git a/application/controller/indexController.php b/application/controller/indexController.php new file mode 100644 index 0000000..b1813bd --- /dev/null +++ b/application/controller/indexController.php @@ -0,0 +1,42 @@ +navigationAction(); + $this->pageAction(); + } + + public function pageAction() + { + View::getInstance()->assign( + array( + 'name' => 'Beispielseite', + 'title' => 'Stephan Kasdorf - Nibiru Example', + 'css' => Config::getInstance()->getConfig()[View::ATM_SETTINGS]["smarty.css"], + 'js' => Config::getInstance()->getConfig()[View::ATM_SETTINGS]["smarty.js"] + ) + ); + } + + public function navigationAction() + { + JsonNavigation::getInstance()->loadJsonNavigationArray(); + } + + public function formAction( $action = false, $name = "", $type = "", $labeled = false, $data = array() ) + { + // TODO: Implement formAction() method. + } +} \ No newline at end of file diff --git a/application/view/templates/navigation.tpl b/application/view/templates/navigation.tpl index 5287707..0528a55 100644 --- a/application/view/templates/navigation.tpl +++ b/application/view/templates/navigation.tpl @@ -4,7 +4,7 @@