public function detailsAction() { $tarifModel = new Application_Model_Tarif(); $this->view->assign('countAll', count($tarifModel->getAll())); $this->view->assign('lastChange', $tarifModel->getLastUpdate()); switch ($this->getRequest()->getParam('name', '')) { case 'guenstigste-prepaid-karten-nach-tarif': $this->_redirect('empfehlung/guenstigste-prepaid-tarife', array('code' => 301)); break; case 'guenstigste-prepaid-tarife': $this->renderScript('empfehlung/_partials_details/guenstig.phtml'); break; case 'kostenlose-prepaid-karten': $this->renderScript('empfehlung/_partials_details/kostenlos.phtml'); break; case 'prepaid-karten-tarif-mit-kostenstopp': $this->_redirect('empfehlung/prepaid-tarif-mit-kostenstopp', array('code' => 301)); break; case 'prepaid-tarif-mit-kostenstopp': $this->renderScript('empfehlung/_partials_details/kostenstopp.phtml'); break; case 'prepaid-karten-mit-groessten-startbonus ': $this->_redirect('empfehlung/prepaid-tarif-mit-startguthaben', array('code' => 301)); break; case 'prepaid-tarif-mit-startguthaben': $this->renderScript('empfehlung/_partials_details/startguthaben.phtml'); break; case 'prepaid-karten-tarif-mit-postpaid-rechnung': $this->_redirect('empfehlung/prepaid-tarif-auf-rechnung', array('code' => 301)); break; case 'prepaid-tarif-auf-rechnung': $this->renderScript('empfehlung/_partials_details/postpaid.phtml'); break; case 'prepaid-karten-mit-bester-nutzerbewertung': $this->_redirect('empfehlung/prepaid-tarif-mit-bester-nutzerbewertung', array('code' => 301)); break; case 'prepaid-tarif-mit-bester-nutzerbewertung': $this->renderScript('empfehlung/_partials_details/bewertung.phtml'); break; case 'beste-prepaid-karten-im-d2-netz': $this->_redirect('empfehlung/beste-d2-prepaid-tarife', array('code' => 301)); break; case 'beste-d2-prepaid-tarife': $this->renderScript('empfehlung/_partials_details/d2.phtml'); break; case 'beste-prepaid-karten-im-d1-netz': $this->_redirect('empfehlung/beste-d1-prepaid-tarife', array('code' => 301)); break; case 'beste-d1-prepaid-tarife': $this->renderScript('empfehlung/_partials_details/d1.phtml'); break; case 'beste-prepaid-karten-im-o2-netz': $this->_redirect('empfehlung/beste-o2-prepaid-tarife', array('code' => 301)); break; case 'beste-o2-prepaid-tarife': $this->renderScript('empfehlung/_partials_details/o2.phtml'); break; case 'beste-prepaid-karten-im-e-plus-netz': $this->_redirect('empfehlung/beste-eplus-prepaid-tarife', array('code' => 301)); break; case 'beste-eplus-prepaid-tarife': $this->renderScript('empfehlung/_partials_details/eplus.phtml'); break; default: $this->_redirect('index'); break; } }
public function indexAction() { $tarifModel = new Application_Model_Tarif(); $this->view->assign('tarife', $tarifModel->getAll()); $this->view->assign('lastChange', $tarifModel->getLastUpdate()); }
/** * */ public function lastupdate() { $tarifModel = new Application_Model_Tarif(); return $tarifModel->getLastUpdate(); }