M
M
monday_suicide2020-09-05 03:24:03
Yii
monday_suicide, 2020-09-05 03:24:03

How to return formatted data in GridView?

Hello.
Tell me how to return already formatted data to gridView?
At the moment I'm doing this in the gridView:

'value' => function($data){
                    return $data->getCurrencyPrice($data->price_roz);
                },

Is it possible to receive formatted data simply via: Thanks
'attribute' => 'price_roz',

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question