public function mapsAction() { $cities = Model_Hm_Geo_City::findAllForMap()->execute(); $homes = Model_Hm_Home::findAllForMap()->execute(); $this->view->cities = $cities; $this->view->homes = $homes; $this->view->layout()->disableLayout(); }
public function deleteAction() { $id = $this->_getParam('id'); $city = Model_Hm_Geo_City::findOneByIdForAdmin($id)->fetchOne(); $this->_helper->layout()->setLayout('submenu'); if ($city) { $city->delete(); } $this->_helper->redirector('admin', 'geo'); }