Twitter bootstrap Yii Widget,意外),错误在哪里?
PHP解析错误:语法错误,第14行的/dev/shm/untitled.PHP中出现意外“') 我真的找不到错误,看了100遍。需要实现这个小部件, 谢谢 有4个左括号和4个右括号。逗号没问题,所以Twitter bootstrap Yii Widget,意外),错误在哪里?,twitter-bootstrap,yii,widget,Twitter Bootstrap,Yii,Widget,PHP解析错误:语法错误,第14行的/dev/shm/untitled.PHP中出现意外“') 我真的找不到错误,看了100遍。需要实现这个小部件, 谢谢 有4个左括号和4个右括号。逗号没问题,所以 参见说明 <?php $this->widget('bootstrap.widgets.TbAlert', array( 'block'=>true, // display a larger alert block? 'fade'=>true,
参见说明
<?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
),
),
);
?>
<?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
);
?>
当然,我不知道为什么我认为它在arrayNetBeans IDE 7.2.1(构建201210100934)中
Requires
php: >=5.4.0