From 628329396e23f8bfc77f82e950d37e4c8daf63a3 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Wed, 11 Apr 2018 14:36:16 +0200 Subject: [PATCH] Correction for running on php -S --- .htaccess | 4 ++++ application/controller/indexController.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..363ce54 --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ +SetEnv APPLICATION_ENV development +RewriteEngine On +RewriteRule !\.(js|gif|jpg|png|css|txt)$ index.php [L] +RewriteRule ^(.*)$ $1 [L] diff --git a/application/controller/indexController.php b/application/controller/indexController.php index 4e3a606..2b9961a 100644 --- a/application/controller/indexController.php +++ b/application/controller/indexController.php @@ -23,8 +23,8 @@ class indexController extends View implements IController 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"] + 'css' => Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]["smarty.css"], + 'js' => Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]["smarty.js"] ) ); }