/** Setup the index action for Medieval categories * @access public * @return void */ public function indexAction() { $this->view->categories = $this->_categories->getCategoriesPeriod($this->_period); }
/** Set up the category index pages */ public function indexAction() { $categories = new CategoriesCoins(); $this->view->categories = $categories->getCategoriesPeriod(36); }
public function catsperiodAction() { if ($this->_getParam('term', false)) { $cats = new CategoriesCoins(); $response = $cats->getCategoriesPeriod($this->_getParam('term')); } else { $response = array(array('id' => NULL, 'term' => 'No period specified')); } echo Zend_Json::encode($response); }