I have created a new column but it does not show in GridView::widget

I have created a new column and I have added it to the rules ,attributeLabels in model. I also added it to search models rules, search. But when I showing It in view it says (not set)
image

What shall I do?

paymentSearch model

public function rules()
{
    return [
        [['id', 'reservation_id', 'invoiceID', 'currency_id', 'paidbyonline'], 'integer'],

Payment model

  • @property integer $paidbyonline

[[‘reservation_id’, ‘invoiceID’, ‘currency_id’, ‘received_currency_id’, ‘paidbyonline’], ‘integer’,‘message’=>‘’],

view

                    ],

    'paidbyonline',
                ],
            ]);

Add relevant code

1 Like