diff --git a/application/controller/IndexController.php b/application/controller/IndexController.php index 5b69fb8..6a8f9e4 100644 --- a/application/controller/IndexController.php +++ b/application/controller/IndexController.php @@ -27,8 +27,6 @@ class IndexController extends Katharsis_Controller_Abstract */ public function indexAction() { - $this->_view->someVariableName = 'Katharsis'; - echo $this->_view->render('welcome'); } /** diff --git a/application/view/Index/index.phtml b/application/view/Index/index.phtml deleted file mode 100644 index ae427e8..0000000 --- a/application/view/Index/index.phtml +++ /dev/null @@ -1,15 +0,0 @@ - - - Swiss Didgeridoo Artwork - Schweizer Holz Didgeridoo bester Qualität - - - - - - - - - - - - \ No newline at end of file diff --git a/application/view/main.phtml b/application/view/main.phtml new file mode 100644 index 0000000..e9fa602 --- /dev/null +++ b/application/view/main.phtml @@ -0,0 +1,73 @@ + + + + + + Seinheit + <?php if(Navigation::getTitle()): ?> + - <?php echo Navigation::getTitle(); ?> + <?php endif ?> + + + + + + + + + + +
+
+ + + + + + notices): ?> + + + + + +
+ +
+ + headerImage): ?> + + + +

+ +

+ + +
+ stageContent ?> +
+ +
+ +
+ + \ No newline at end of file diff --git a/library/Katharsis/Controller/Plugin/Autorender.php b/library/Katharsis/Controller/Plugin/Autorender.php index f101b3d..c1896cd 100644 --- a/library/Katharsis/Controller/Plugin/Autorender.php +++ b/library/Katharsis/Controller/Plugin/Autorender.php @@ -15,6 +15,7 @@ class Katharsis_Controller_Plugin_Autorender extends Katharsis_Controller_Plugin */ public function postController() { + $view = Katharsis_View::getInstance(); $view->controllerAction = false; @@ -28,5 +29,8 @@ class Katharsis_Controller_Plugin_Autorender extends Katharsis_Controller_Plugin $view = Katharsis_View::getInstance(); echo $view->render('main'); + + var_dump($view->render('main')); + die(''); } } \ No newline at end of file diff --git a/library/Katharsis/Controller/Plugin/StartSession.php b/library/Katharsis/Controller/Plugin/StartSession.php new file mode 100644 index 0000000..fefbfc2 --- /dev/null +++ b/library/Katharsis/Controller/Plugin/StartSession.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/public/index.php b/public/index.php index ce66f02..03fc35a 100644 --- a/public/index.php +++ b/public/index.php @@ -12,8 +12,15 @@ chdir('..'); require_once('library/Katharsis/Bootstrap.php'); Katharsis_Autoload::init(); + +//Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_SetNames()); +Katharsis_Controller_Plugin::registerPlugin(new Katharsis_Controller_Plugin_StartSession()); +Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_Notice()); Katharsis_Controller_Plugin::registerPlugin(new Katharsis_Controller_Plugin_Autorender()); +Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_Access()); +//Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_Navigation()); + try { Katharsis_Bootstrap::run();