attributeLabels() публичный Метод

public attributeLabels ( )
Пример #1
0
            <div class="panel panel-default">
                <!-- Default panel contents -->
                <div class="panel-heading">
                    <h4><b><?php 
echo Html::encode($this->title);
?>
</b></h4>
                </div>

                <div class="panel-body">
                    <ul class="list-group">

                        <li class="list-group-item clearfix">
                            <div class="label-wrapper border-right">
                                <label><?php 
echo \common\models\Category::attributeLabels()['display_name'];
?>
</label>
                            </div>
                            <div class="info-wrapper">
                                <?php 
$productCategories = $model->productCategories;
$cat_str = "";
foreach ($productCategories as $pc) {
    $cat_str .= "{$pc->category->display_name}, ";
}
echo rtrim($cat_str, ', ');
?>
                            </div>
                        </li>