diff --git a/application/modules/default/controllers/IndexController.php b/application/modules/default/controllers/IndexController.php index 7be56bf..002f898 100644 --- a/application/modules/default/controllers/IndexController.php +++ b/application/modules/default/controllers/IndexController.php @@ -4,35 +4,16 @@ class IndexController extends Fiktiv_Controller_Action { public function indexAction() { - // Here be dragons - //$m = new MyModel(); - //echo $m->name; + + - // Quick access - $me = $this->dataService->User->findRandom(); - echo $me; - - - $r = Fiktiv_Performance::benchmark(array('IndexController','test')); - echo '
'; - print_r($r); - echo ''; - - Zend_Debug::dump(Zend_Auth::getInstance()->getIdentity(), 'User'); } public function aboutAction() { $lang = Zend_Registry::get('Zend_Translate')->getLocale(); - $this->view->content = $this->dataService->About->getContent($lang); - } - - public function test() - { - $r = rand(100,999); - for ($i=0;$i<$r;$i++) { - $s = $i+$i; - } + $abouts = new ModelAbout(); + $this->view->content = $abouts->fetchAll($abouts->quoteInto('Locale = ?',$lang)); } } \ No newline at end of file diff --git a/application/modules/default/models/ModelAbout.php b/application/modules/default/models/ModelAbout.php new file mode 100644 index 0000000..11c1905 --- /dev/null +++ b/application/modules/default/models/ModelAbout.php @@ -0,0 +1,8 @@ + -
=$this->text($this->content['about'])?>
- - -=$this->text($this->content['behind the site'])?>
- - -=$this->text($this->content['cookies']) ?>
\ No newline at end of file +content as $chapter): ?> + +=$chapter->Content ?>
+ diff --git a/application/modules/default/views/scripts/index/index.phtml b/application/modules/default/views/scripts/index/index.phtml index 70dcbd8..ec22b77 100644 --- a/application/modules/default/views/scripts/index/index.phtml +++ b/application/modules/default/views/scripts/index/index.phtml @@ -1,55 +1,3 @@=$this->translate('START_TXT') ?>
- - - $val ) - $url .= ' ' . $key . '="' . $val . '"'; - $url .= ' />'; - } - return $url; -} - -//echo 'Translated: =$this->translate('uw:example', 'home', 'about', true) ?>
- - -| abc | -bab | -
|---|---|
| abc | -bbb | -
=$this->translate('START_TXT') ?>
\ No newline at end of file