Yii Framework Forum: CButtonColumn Class throwing error Trying to get property of non-object - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CButtonColumn Class throwing error Trying to get property of non-object Rate Topic: -----

#1 User is offline   syedhussain 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-March 12

Posted 28 March 2012 - 11:44 AM

Getting the "Trying to get property of non-object" error when using CButtonColumn class.


<?php
// print_r($catInfo['data']);
// die();
$dataProvider = new CArrayDataProvider(isset($catInfo['data']) ? ($catInfo['data']) : null, array(

'id'=>'typeviewgrid'
'keyField'=>'_id',
'pagination'=>array(
'pageSize'=>10,)
));

$this->widget('zii.widgets.grid.CGridView',array('dataProvider' => $dataProvider,
'columns'=>array(
'_id',
array(
'class'=>'CButtonColumn',

),
)
)
);
?>
0

#2 User is offline   OyvindKong 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 05-November 12

Posted 15 November 2012 - 09:25 AM

I got the same problem. Can't figure it out..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users