فلش و پیغام خطا در کیک php
return $this->Flash->success('This was successful');
return $this -> Flash -> set('The user has been saved.', ['element' => 'success']);
make /app/View/Elements/Flash/success.ctp
<div id="flash-<?php echo h($key) ?>" class="message-info success">
<?php echo h($message) ?>
</div>
http://book.cakephp.org/3.0/en/controllers/components/flash.html
return $this->flash(__('The brand has been saved.'), array('action' => 'index'));