public function out($msg) { if (!empty($this->controller->Flash)) { $this->controller->Flash->success($msg); } else { $this->Shell->out($msg); } }