帮我展示自己的信息。 我正在使用
$this->Session->setFlash(_('My Custom message Here'));
我尝试过很多东西,但无法克服这个错误。
答案 0 :(得分:0)
在default.ctp
文件夹
View/Elements
的文件
在该文件中写下以下代码
<?php echo $message; ?>
并在您要显示消息的位置写下以下代码
<?php echo $this->Session->flash(); ?>