private function _editAccountAdmin() { $states = Cible_FunctionsGeneral::getStatesByCountry($addressFact['A_CountryId']); foreach ($states as $value) { $tmpStates[$value['ID']] = $value['Name']; } $this->_view->assign('data', $this->_data['notifyAdmin']); $this->_view->assign('form', $this->_data['form']); $this->_view->assign('states', $tmpStates); $changesList = $this->_view->render('index/changesList.phtml'); $this->_message = str_replace('##TABLE##', $changesList, $this->_message); foreach ($this->_data as $key => $value) { $search = '##' . $key . '##'; $this->_message = str_replace($search, $value, $this->_message); } }