Yii Widget,意外),错误在哪里?
<?php
$this->widget('bootstrap.widgets.TbAlert', array(
'block'=>true, // display a larger alert block?
'fade'=>true, // use transitions?
'closeText'=>'×', // 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'=>'×',
), // success, info, warning, error or danger
),
),
);
?>
第14行的/dev/shm/untitled.php中的PHP解析错误:语法错误,意外的')'
我真的找不到这个错误,并且看上去像是100次。 需要实现这个小部件,谢谢!
有4个左括号和4个关闭。 逗号是好的,所以......?
<?php
$this->widget('bootstrap.widgets.TbAlert', array(
'block'=>true,
'fade'=>true,
'closeText'=>'×',
'alerts'=>array(
'success'=>array(
'block'=>true,
'fade'=>true,
'closeText'=>'×'
),
),
), // you have comma here - it's mistake
);
?>
看指示
Requires
php: >=5.4.0
链接地址: http://www.djcxy.com/p/11991.html
上一篇: Yii Widget, unexpected ), where is the error?
下一篇: Parse error: syntax error, unexpected '(' in D:\xampp3\xampp\htdocs\contact.php on line 10