public function admin_add() { parent::admin_add(); $branches = $this->Contact->Branch->find('list'); if (empty($branches)) { $this->notice(__('Please add a branch first'), array('level' => 'notice', 'redirect' => array('controller' => 'branches'))); } $this->set(compact('branches')); }
public function admin_add() { parent::admin_add(); //$timeZones = $this->Branch->TimeZone->find('list'); $this->set(compact('timeZones')); }