public function update() { if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->updatePost(); } else { if ($_SERVER['REQUEST_METHOD'] == 'GET') { $this->updateGet(); } } $cityDAO = new CityDAO(DataSource::getInstance()); $this->registry->template->cities = $cityDAO->findByAll(); $this->registry->template->tile_title = 'Sửa thông tin khách hàng'; $this->registry->template->tile_content = 'admin/customer-update.php'; $this->registry->template->show('admin/layout/admin.php'); }