This:
$gridDataProvider = new CArrayDataProvider(array(
array( id =>1, firstName => Mark , lastName => Otto , language => CSS ),
array( id =>2, firstName => Jacob , lastName => Thornton , language => JavaScript ),
array( id =>3, firstName => Stu , lastName => Dent , language => HTML ),
));
$this->widget( bootstrap.widgets.BootGridView , array(
type => striped bordered condensed ,
dataProvider =>$gridDataProvider,
template =>"{items}",
columns =>array(
array( name => id , header => # ),
array( name => firstName , header => First name ),
array( name => lastName , header => Last name ),
array( name => language , header => Language ),
array(
class => bootstrap.widgets.BootButtonColumn ,
htmlOptions =>array( style => width: 50px ),
),
),
));
正在返回:
Trying to get property of non-object
Menu, Buttons(和所有其他东西)进行罚款。