request->data)) { $bandwidth = $this->request->data['Bandwidth']['Bandwidth']; $this->Cookie->write('zmBandwidth', $bandwidth, false); $this->set('bandwidth', $bandwidth); if ($this->Cookie->read('zmBandwidth') == $bandwidth) { $this->Session->setFlash('Successfully updated bandwidth'); } else { $this->Session->setFlash('Failed to update bandwidth'); } } else { $this->set('bandwidth', $this->Cookie->read('zmBandwidth')); } } } ?>