В моем домене на общем хосте не отображаются флеш-сообщения. Он отлично отображается на моем локальном сервере. У меня есть следующее в student_controller:
function add(){
$this->Session->setFlash('Your child\'s admission has been received. We will send you an email shortly.');
}
У меня есть следующее в default.ctp(файл макета) и add.ctp:
echo $this->Session->flash();
папка /app/tmp и все папки в ней имеют разрешение 777.
Я также поставил debug($this->Session->read()); в student_controller и дает:
Array
(
[_Token] => a:5:{s:3:"key";s:40:"39a5e70df521f8f175d20060abb261b69611f0a1";s:7:"expires";i:1327392309;s:18:"allowedControllers";a:0:{}s:14:"allowedActions";a:0:{}s:14:"disabledFields";a:0:{}}
[Message] => Array
(
[flash] => Array
(
[message] => Your child's admission has been received. We will send you an email shortly.
[element] => default
[params] => Array
(
)
)
)
)
В app_controller.php:
var $helpers = array('Html','Form','Ajax','Javascript','Session');
var $components=array('Auth','Session','Cookie');
В core.php я пробовал установить: Configure::write('debug', 0); вместо Configure::write('debug', 2); Configure::write('Session.save', 'торт'); вместо Configure::write('Session.save', 'php');
У меня нет пробелов ни после, ни перед в route.php.
Кто-нибудь может мне помочь? Какую ошибку я делаю?