yii active jqgrid

http://code.google.com/p/yii-active-jqgrid/

Please help me to configure this extension some thing like this:

$this->widget(‘ext.jqgrid.JqGridView’, array(

  'dataProvider'=>$model,


  'columns'=>array(


  'id'=>array('Name'=>'id'),


  'username'=>array('Name'=>'username'),


  'email'=>array('Name'=>'email')


  )


  


  ));

trow this:

CException

Object configuration must be an array containing a "class" element.

C:\xampp\htdocs\yii\framework\YiiBase.php(188)

176 {

177 if(is_string($config))

178 {

179 $type=$config;

180 $config=array();

181 }

182 else if(isset($config[‘class’]))

183 {

184 $type=$config[‘class’];

185 unset($config[‘class’]);

186 }

187 else

188 throw new CException(Yii::t(‘yii’,‘Object configuration must be an array containing a “class” element.’));

189

190 if(!class_exists($type,false))

191 $type=Yii::import($type,true);

192

193 if(($n=func_num_args())>1)

194 {

195 $args=func_get_args();

196 if($n===2)

197 $object=new $type($args[1]);

198 else if($n===3)

199 $object=new $type($args[1],$args[2]);

200 else if($n===4)

Stack Trace

#0

C:\xampp\htdocs\trackstar\protected\extensions\jqgrid\JqGridView.php(63): YiiBase::createComponent(null, JqGridView)

58 /**

59 * Creates column objects and initializes them.

60 */

61 protected function initColumns() {

62

63 $this->columnsModel = Yii::createComponent($this->columnsModel, $this);

64 $this->columnsModel->init();

65 }

66

67 protected function initData() {

68 if(!isset($this->options[‘datatype’]))$this->options[‘datatype’] = ‘local’;

#1

C:\xampp\htdocs\trackstar\protected\extensions\jqgrid\JqGridView.php(42): JqGridView->initColumns()

37 $this->htmlOptions[‘id’] = $this->getId();

38

39 // if (!isset($this->htmlOptions[‘class’]))

40 // $this->htmlOptions[‘class’] = ‘grid-view’;

41

42 $this->initColumns();

43 $this->initData();

44 $this->initNavigator();

45 $this->initFilterToolbar();

46 }

47

#2

C:\xampp\htdocs\yii\framework\web\CBaseController.php(140): JqGridView->init()

#3

C:\xampp\htdocs\yii\framework\web\CBaseController.php(165): CBaseController->createWidget("ext.jqgrid.JqGridView", array("dataProvider" => Emails, "columns" => array("id" => array("Name" => "id"), "username" => array("Name" => "username"), "email" => array("Name" => "email"))))

#4

C:\xampp\htdocs\trackstar\protected\views\emails\grid_view.php(13): CBaseController->widget("ext.jqgrid.JqGridView", array("dataProvider" => Emails, "columns" => array("id" => array("Name" => "id"), "username" => array("Name" => "username"), "email" => array("Name" => "email"))))

08 ‘id’=>array(‘Name’=>‘id’),

09 ‘username’=>array(‘Name’=>‘username’),

10 ‘email’=>array(‘Name’=>‘email’)

11 )

12

13 ));

14

#5

C:\xampp\htdocs\yii\framework\web\CBaseController.php(119): require("C:\xampp\htdocs\trackstar\protected\views\emails\grid_view.php")

#6

C:\xampp\htdocs\yii\framework\web\CBaseController.php(88): CBaseController->renderInternal("C:\xampp\htdocs\trackstar\protected\views/emails\grid_view.php", array("model" => Emails), true)

#7

C:\xampp\htdocs\yii\framework\web\CController.php(866): CBaseController->renderFile("C:\xampp\htdocs\trackstar\protected\views/emails\grid_view.php", array("model" => Emails), true)

#8

C:\xampp\htdocs\yii\framework\web\CController.php(779): CController->renderPartial("grid_view", array("model" => Emails), true)

#9

C:\xampp\htdocs\trackstar\protected\controllers\EmailsController.php(185): CController->render("grid_view", array("model" => Emails))

#10

C:\xampp\htdocs\yii\framework\web\actions\CInlineAction.php(50): EmailsController->actionGridView()

#11

C:\xampp\htdocs\yii\framework\web\CController.php(300): CInlineAction->runWithParams(array("r" => "emails/gridview"))

#12

C:\xampp\htdocs\yii\framework\web\filters\CFilterChain.php(133): CController->runAction(CInlineAction)

#13

C:\xampp\htdocs\yii\framework\web\filters\CFilter.php(41): CFilterChain->run()

#14

C:\xampp\htdocs\yii\framework\web\CController.php(1122): CFilter->filter(CFilterChain)

#15

C:\xampp\htdocs\yii\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)

#16

C:\xampp\htdocs\yii\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(CFilterChain)

#17

C:\xampp\htdocs\yii\framework\web\CController.php(283): CFilterChain->run()

#18

C:\xampp\htdocs\yii\framework\web\CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl"))

#19

C:\xampp\htdocs\yii\framework\web\CWebApplication.php(328): CController->run("gridview")

#20

C:\xampp\htdocs\yii\framework\web\CWebApplication.php(121): CWebApplication->runController("emails/gridview")

#21

C:\xampp\htdocs\yii\framework\base\CApplication.php(155): CWebApplication->processRequest()

#22

C:\xampp\htdocs\trackstar\index.php(13): CApplication->run()

You already have two other posts about jqgrid here in the general section

http://www.yiiframew…p?/topic/19552-

http://www.yiiframew…p?/topic/19585-

jqgrid is an extension… you can ask the extension author for help… or in the extension forum… and please do not post same questions multiple times…

Ok, but yi-active-jqgrid and jqgrid are two different extensions, and for the first one have not any explanation of how to configure.

this is last time, Sorry.