不呈现错误消息bootstrap.widgets.TbAlert

时间:2014-04-07 12:58:12

标签: twitter-bootstrap yii

TBAlert.php if (Yii::app()->getComponent($this->userComponentId)->hasFlash($type))中这种情况不会返回true,但在实时服务器上它的工作正常

 <?php
 $this->widget('bootstrap.widgets.TbAlert', array(
    'block'=>true, // display a larger alert block?
    'fade'=>true, // use transitions?
    'closeText'=>'&times;', // close link text - if set to false, no close link is displayed
 )); ?>

1 个答案:

答案 0 :(得分:0)

配置/ main.php

  'session' => array (
        'class' => 'CHttpSession',
        'sessionName' => 'brokerpad',
        'timeout' => 1440,
        'cookieMode' => 'allow',
        'cookieParams' => array(
            'path' => '/',
            'domain' => 'There are need to be place right domain',
            'httpOnly' => true,
        ),
    ),

'domain'=&gt; “需要放置正确的域名”,