function indexAction() { $this->view->issues = array(); $this->view->topicsUntaggedSumByFolder = array(); $config = Zend_Registry::get('config'); $topicsClient = new couchClient($config->couchdb->uri . ":" . $config->couchdb->port, $config->couchdb->topics); try { $view = $topicsClient->group(TRUE)->asArray()->stale("ok")->getView('bayers', 'topics-untagged-sum-by-folder'); $this->view->topicsUntaggedSumByFolder = $view['rows']; $issueModel = new Issue(); $issues = $issueModel->getConsumerAlerts($this->_currentUser['id']); if (sizeof($issues) > 0) { $this->view->issues = $issues; } } catch (Exception $e) { } $this->view->image_uri = $config->image->host . "/" . (int) $this->_currentUser->id . ".ifmg"; $this->_helper->layout->setLayout("layout_isotope"); }