Hey guys!
How i can modify values in model result, before rendering?
it not work:
$items = Items::find();
foreach($items as $item) {
$item->title = '[modified]' . $item->title;
$item->summ = $item->summ * 2;
}
Hey guys!
How i can modify values in model result, before rendering?
it not work:
$items = Items::find();
foreach($items as $item) {
$item->title = '[modified]' . $item->title;
$item->summ = $item->summ * 2;
}