Hello everyone,
I tried to use yii default CGridView widget with pagination.( unfortunately without any success).
In view file the CGridView displaying data but when i clicking on pagination link i got the following error in a
alert dialog: "Error 404: Unable to resolve the request "ProcessInvite"."
(controller’s name missing from generated url );
current url is: "/mk/yiicore/index.php?r=ProcessInvite&userid=169"
should be: "/mk/yiicore/index.php?r=invite/ProcessInvite&userid=169"
VIEW FILE
<form method="POST" action="<?php Yii::app()->request->baseUrl;?>index.php?r=invite/processinvite" class="form-horizontal">
.....
...
</form>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$model,
'enablePagination' => true,
'columns'=>array
(
array(
'name' => 'name',
'type'=>'raw',
'value' =>'$data->time',
'header' => 'Time'
),
array(
'name' => 'name',
'type'=>'raw',
'value' =>'$data->invitedUser->email',
'header' => 'Email'
),
array(
'name' => 'name',
'type'=>'raw',
'value' =>'isset($data->invitedUser->joomla_id) ? "Yes" : "NO"',
'header' => 'Registered'
),
)
));
?>
(I am sorry for my English)