Подтвердить что ты не робот

Yii Widget, неожиданно), где ошибка?

<?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
      'alerts'=>array( // configurations per alert type
        'success'=>array(
          'block'=>true,
          'fade'=>true,
          'closeText'=>'&times;',
        ), // success, info, warning, error or danger
      ),
    ),
  );
?>

Ошибка анализа паролей PHP: синтаксическая ошибка, неожиданная ')' в /dev/shm/untitled.php в строке 14

Я действительно не могу найти ошибку и смотрел ее как 100 раз. Необходимо реализовать этот виджет,  спасибо!

Есть 4 открытия круглых скобок и 4 закрытия. Запястья в порядке, поэтому...?

4b9b3361

Ответ 1

<?php 
  $this->widget('bootstrap.widgets.TbAlert', array(
      'block'=>true,
      'fade'=>true,
      'closeText'=>'&times;',
      'alerts'=>array( 
        'success'=>array(
          'block'=>true,
          'fade'=>true,
          'closeText'=>'&times;'
        ),
      ),
    ), // you have comma here - it mistake
  );
?>

Ответ 2

см. инструкцию

Requires

php: >=5.4.0