Hi
I have two tables
1. student (studentId, name, student_rId)
2. registration (rId, regNumber)
Student_rId and rId is an entity relation of one is to one nature
I have used Crud to generate code
I am facing trouble to show in student view
student.studentId, student.name, registration.regNumber
My code looks as below
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'student-grid',
'dataProvider'=>$model->Search(),
'filter'=>$model,
'columns'=>array(
'studentId',
'name',
'student_rId',
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
)); ?>
I have two tables
1. student (studentId, name, student_rId)
2. registration (rId, regNumber)
Student_rId and rId is an entity relation of one is to one nature
I have used Crud to generate code
I am facing trouble to show in student view
student.studentId, student.name, registration.regNumber
My code looks as below
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'student-grid',
'dataProvider'=>$model->Search(),
'filter'=>$model,
'columns'=>array(
'studentId',
'name',
'student_rId',
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
)); ?>
