From f6572151ecd201c33fdcabde82c858bf25841d5a Mon Sep 17 00:00:00 2001 From: Logsol Date: Mon, 8 Jul 2013 23:56:50 +0200 Subject: [PATCH] added index redirect plugin --- application/controller/IndexController.php | 3 +-- library/Local/Controller/Plugin/IndexRedirect.php | 12 ++++++++++++ public/index.php | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 library/Local/Controller/Plugin/IndexRedirect.php diff --git a/application/controller/IndexController.php b/application/controller/IndexController.php index 951d8e6..5bef37d 100644 --- a/application/controller/IndexController.php +++ b/application/controller/IndexController.php @@ -27,8 +27,7 @@ class IndexController extends Katharsis_Controller_Abstract */ public function indexAction() { - $controller = new PageController(); - $controller->homeAction(); + // will be overwritten by IndexRedirect Plugin } /** diff --git a/library/Local/Controller/Plugin/IndexRedirect.php b/library/Local/Controller/Plugin/IndexRedirect.php new file mode 100644 index 0000000..5b6fcc3 --- /dev/null +++ b/library/Local/Controller/Plugin/IndexRedirect.php @@ -0,0 +1,12 @@ +