diff --git a/application/models/About.php b/application/models/About.php new file mode 100644 index 0000000..88e2986 --- /dev/null +++ b/application/models/About.php @@ -0,0 +1,6 @@ +fet + $adapter = $this->_dbTable->getAdapter(); + + $select = $adapter + ->select() + ->from('About', array('Title', 'Content')) + ->where('Locale = ?', $locale); + + return $adapter->fetchPairs($select); + } +} \ No newline at end of file diff --git a/application/models/Table/About.php b/application/models/Table/About.php new file mode 100644 index 0000000..201c831 --- /dev/null +++ b/application/models/Table/About.php @@ -0,0 +1,8 @@ +getLocale(); + $this->view->content = $this->dataService->About->getContent($lang); } public function test() diff --git a/application/modules/default/views/scripts/index/about.phtml b/application/modules/default/views/scripts/index/about.phtml index f218b7f..6d73215 100644 --- a/application/modules/default/views/scripts/index/about.phtml +++ b/application/modules/default/views/scripts/index/about.phtml @@ -1,17 +1,15 @@ +
=$this->translate('ABOUT_TXT') ?>
- - +=$this->text($this->content['about'])?>
=$this->translate('ABOUT_TXT_BTS') ?>
- +=$this->text($this->content['behind the site'])?>
=$this->translate('ABOUT_TXT_COOKIES') ?>
\ No newline at end of file +=$this->text($this->content['cookies']) ?>
\ No newline at end of file diff --git a/library/Fiktiv/View/Helper/Text.php b/library/Fiktiv/View/Helper/Text.php new file mode 100644 index 0000000..885980c --- /dev/null +++ b/library/Fiktiv/View/Helper/Text.php @@ -0,0 +1,9 @@ +view->escape($string), $this->view->doctype()->isXhtml()); + } +}