*prepracovany model koli praci s uzivatelmi, je mozne sa uz prihlasit na konkretny...
[sport-group.git] / application / controllers / ArchiveController.php
blob09e0929890affcfdd7dee850a232c6bc353fdaf5
1 <?php
2 require_once APPLICATION_PATH.'/models/GameManager.php';
4 class ArchiveController extends Zend_Controller_Action
7 protected $_model;
9 public function indexAction()
11 $this->view->games = $this->_getModel()->getGames();
14 protected function _getModel()
16 if (null === $this->_model) {
17 // @todo nacitanie suborov a tried prepracovat pomocou Zend_Loader
18 $this->_model = new GameManager();
20 return $this->_model;