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

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

Category: Other

Current version: 1.0.3.1
Jul 30, 2019, 11:22:21 PM (4 months ago)

Packagist: skeeks/cms-rp-view-widget

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

: 2271 (Per month: 57)

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 — Jul 30, 2019, 11:22:21 PM (4 months ago)

dev-master-n — Jun 20, 2019, 4:10:09 PM (5 months ago)

1.0.3.1 — Jul 30, 2019, 11:22:21 PM (4 months ago)

1.0.1 — Jul 10, 2018, 11:20:12 AM (a year ago)

1.0.2 — Jul 10, 2018, 11:20:12 AM (a year ago)

1.0.3 — Jul 10, 2018, 11:20:12 AM (a year ago)

1.0.0 — Aug 31, 2017, 10:39:16 PM (2 years ago)

1.0.0-alpha2 — Dec 28, 2016, 12:02:46 PM (2 years ago)

1.0.0-alpha — Dec 28, 2016, 11:29:34 AM (2 years ago)

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

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

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

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


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