function profileAction() { if (!is_null($this->_user)) { $tmp_user = $this->_user->toArray(); $usersindex_table = new UsersIndex(); $usersindex = $usersindex_table->fetchByUsername($this->_username); $tmp_user = array_merge($tmp_user, $usersindex->toArray()); if (!is_null($tmp_user['country_code'])) { $countries_table = new Countries(); $country = $countries_table->fetchRow($countries_table->getAdapter()->quoteInto('country_code = ?', $tmp_user['country_code'])); $tmp_user['location'] = $country->country; } $params = array('user' => $tmp_user, 'request' => $this->getRequest()); $params = $this->_Bolts_plugin->doFilter($this->_mca, $params); // FILTER HOOK foreach ($params as $key => $value) { $this->view->{$key} = $value; } } else { $this->_forward('default', 'auth', 'missing'); return; } }