PHP notice
Trying to get property of non-object
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\base\CComponent.php(612) : eval()'d code(1)
Stack Trace
#0
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\base\CComponent.php(612): eval()
#1
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\grid\CDataColumn.php(137): CComponent->evaluateExpression("$data->neg->neg_lawat", array("data" => Permohonan, "row" => 4))
#2
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\grid\CGridColumn.php(151): CDataColumn->renderDataCellContent(4, Permohonan)
#3
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\grid\CGridView.php(616): CGridColumn->renderDataCell(4)
#4
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\grid\CGridView.php(572): CGridView->renderTableRow(4)
#5
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\grid\CGridView.php(482): CGridView->renderTableBody()
#6
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\CBaseListView.php(167): CGridView->renderItems()
#7
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
#8
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\CBaseListView.php(150): preg_replace_callback("/{(\w+)}/", array(CGridView, "renderSection"), "{summary} {items} {pager}")
#9
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\zii\widgets\CBaseListView.php(135): CBaseListView->renderContent()
#10
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CBaseController.php(173): CBaseListView->run()
#11
–
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\protected\views\permohonan\senaraiPermohonan.php(80): CBaseController->widget("zii.widgets.grid.CGridView", array("id" => "permohonan-grid", "dataProvider" => CActiveDataProvider, "columns" => array(array("header" => "Nama Pegawai", "value" => "$data->peg_ic"), array("header" => "Negara yang Dilawati", "value" => "$data->neg->neg_lawat"), array("header" => "Tarikh Mula Lawatan", "value" => "$data->moh_cutimula"), array("header" => "Tarikh Tamat Lawatan", "value" => "$data->moh_cutitamat"), …)))
75 */
76 array(
77 ‘class’=>‘CButtonColumn’,
78 ),
79 ),
80 )); ?>
#12
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CBaseController.php(126): require("C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\protect…")
#13
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal("C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\protect…", array("model" => Permohonan), true)
#14
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CController.php(869): CBaseController->renderFile("C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\protect…", array("model" => Permohonan), true)
#15
–
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\protected\components\XController.php(14): CController->renderPartial("senaraiPermohonan", array("model" => Permohonan), true)
09
10 /* this class for support problem when using ajax renderpartial */
11 public function renderPartialX($view, $data = null, $return = false) {
12 $mainClientScript = Yii::app()->clientScript;
13 Yii::app()->setComponent(‘clientScript’, new ZClientScript);
14 $output = $this->renderPartial($view, $data, true);
15 $output.=Yii::app()->clientScript->renderOnRequest();
16 Yii::app()->setComponent(‘clientScript’, $mainClientScript);
17
18 if ($return)
19 return $output;
#16
–
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\protected\controllers\PermohonanController.php(250): XController->renderPartialX("senaraiPermohonan", array("model" => Permohonan))
245 }
246
247 $this->renderPartialX(‘senaraiPermohonan’,array(
248 ‘model’=>$model,
249
250 ));
251 }
252
253 public function actionIndex()
254 {
255 $dataProvider=new CActiveDataProvider(‘Permohonan’);
#17
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\actions\CInlineAction.php(49): PermohonanController->actionSenaraiPermohonan()
#18
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CController.php(308): CInlineAction->runWithParams(array("r" => "permohonan/senaraiPermohonan"))
#19
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\filters\CFilterChain.php(133): CController->runAction(CInlineAction)
#20
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\filters\CFilter.php(40): CFilterChain->run()
#21
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CController.php(1145): CFilter->filter(CFilterChain)
#22
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#23
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#24
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CController.php(291): CFilterChain->run()
#25
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete"))
#26
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CWebApplication.php(282): CController->run("senaraiPermohonan")
#27
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\web\CWebApplication.php(141): CWebApplication->runController("permohonan/senaraiPermohonan")
#28
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\yii\framework\base\CApplication.php(180): CWebApplication->processRequest()
#29
C:\BitNami\wappstack-5.4.22-0\apache2\htdocs\luar_negara\index.php(13): CApplication->run()