Publication time: Wednesday, December 28, 2016 (4 years ago)

Created by: Семенов Александр Сергеевич

Category: Other

Current version:
Jan 1, 1970, 3:00:00 AM (51 years ago)

Packagist: skeeks/cms-rp-view-widget

: https://github.com/skeeks-cms/cms-rp-view-widget

:

Type of: Компонент

Widget view model relited properties SkeekS CMS

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-rp-view-widget "*"

or add

"skeeks/cms-rp-view-widget": "*"

Example


<? $widget = \skeeks\cms\rpViewWidget\RpViewWidget::beginWidget('product-properties', [ 'model' => $model, //'visible_properties' => ['color', 'material'], //'visible_only_has_values' => true, //'viewFile' => '@app/views/your-file', ]); ?> <? //$widget->viewFile = '';?> <? \skeeks\cms\rpViewWidget\RpViewWidget::end(); ?>

View file


<?php /* @var $this yii\web\View */ /* @var $widget \skeeks\cms\rpViewWidget\RpViewWidget */ ?> <? if ($attributes = $widget->rpAttributes) : ?> <? foreach ($attributes as $code => $value) : ?> <p> <strong><?= $widget->model->relatedPropertiesModel->getRelatedProperty($code)->name; ?>:</strong> <?= $widget->model->relatedPropertiesModel->getSmartAttribute($code); ?> </p> <? endforeach; ?> <? endif; ?>

Links


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com

CHANGELOG

1.0.1

  • Update

1.0.0

  • Update

1.0.0-alpha2

  • A small change in the operating logic

1.0.0-alpha

  • Can be used

All Comments (0)
No Comments

dev-master — Jan 1, 1970, 3:00:00 AM (51 years ago)

dev-master-n — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.4 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.3.1 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.1 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.2 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.3 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.0 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.0-alpha2 — Jan 1, 1970, 3:00:00 AM (51 years ago)

1.0.0-alpha — Jan 1, 1970, 3:00:00 AM (51 years ago)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"skeeks/cms-rp-view-widget": "*"

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS