if ($notification->active == 1) {
echo '<p style="font-weight: bold;">'.Html::a($notif, ['notification', 'id' => $notification->id_zakaz]).'</p>';
} else {
echo '<p>'.Html::a($notif, ['notification', 'id' => $notification->id_zakaz]).'</p>';
}
echo \common\helpers\SomeMyHelper::notify($notif,$notification->active,$notification->id_zakaz);
<?php
namespace common\helpers;
use \yii\bootstrap\Html;
class SomeMyHelper
{
public static function notify($a, $b, $c)
{
return Html::tag('p',Html::a($a, ['notification', 'id' => $c]),['style'=>($b == 1)?'font-weight: bold;':'']);
}
}