From 98ff85c219068d13aedf50ccba959f9d74ea1db1 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 14 Apr 2011 13:51:47 +0200 Subject: Ticket #208 - Layouts umbenannt, application.ini angepasst --- application/configs/application.ini.dist | 2 +- application/modules/fbgui/layouts/rz.phtml | 99 +++++++++++++++++++++++++ library/Pbs/Controller/Plugin/Modularlayout.php | 2 +- 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 application/modules/fbgui/layouts/rz.phtml diff --git a/application/configs/application.ini.dist b/application/configs/application.ini.dist index a86e56b..64618e4 100644 --- a/application/configs/application.ini.dist +++ b/application/configs/application.ini.dist @@ -26,7 +26,7 @@ dev.resources.layout.layoutPath = APPLICATION_PATH "/layouts" user.resources.layout.layout = "user" user.resources.layout.layoutPath = APPLICATION_PATH "/layouts" -fbgui.resources.layout.layout = "fbgui" +fbgui.resources.layout.layout = "rz" fbgui.resources.layout.layoutPath = APPLICATION_PATH "/layouts" [staging : production] diff --git a/application/modules/fbgui/layouts/rz.phtml b/application/modules/fbgui/layouts/rz.phtml new file mode 100644 index 0000000..6ea324c --- /dev/null +++ b/application/modules/fbgui/layouts/rz.phtml @@ -0,0 +1,99 @@ +doctype(); ?> + + + + +getRequest(); +$this->headTitle()->append(ucwords($request->getControllerName())); +$this->headTitle()->append(ucwords($request->getActionName())); +echo $this->headTitle()."\n"; +echo $this->headMeta()."\n"; +echo $this->headStyle()."\n"; +echo $this->headLink()."\n"; +echo $this->headScript()."\n"; +?> + + + + + + + + + + + + + +
+ +
+ + +
+
+
+
+ +
+
+
+ getControllerName()) . " > " . ucwords($request->getActionName()); + ?> +
+
+ layout()->content; ?> +
+ + +
+ +
+
+ + + +
+ +
+ + diff --git a/library/Pbs/Controller/Plugin/Modularlayout.php b/library/Pbs/Controller/Plugin/Modularlayout.php index 1cc25dd..12ac4f1 100644 --- a/library/Pbs/Controller/Plugin/Modularlayout.php +++ b/library/Pbs/Controller/Plugin/Modularlayout.php @@ -19,7 +19,7 @@ class Pbs_Controller_Plugin_Modularlayout extends Zend_Controller_Plugin_Abstrac $moduleDir = Zend_Controller_Front::getInstance()->getModuleDirectory(); $moduleDir .= "/layouts"; $layoutScript = $config[$moduleName]['resources']['layout']['layout']; - $str = $moduleDir."/".$layoutScript; + $str = $moduleDir."/".$layoutScript; Zend_Layout::getMvcInstance()->setLayoutPath($moduleDir/*. DIRECTORY_SEPARATOR .$layoutPath*/); Zend_Layout::getMvcInstance()->setLayout($layoutScript); -- cgit v1.2.3-55-g7522