Heure de publication: mercredi 28 décembre 2016 (il y a 7 ans)

Créé par: Семенов Александр Сергеевич

Catégorie: Autre

Version actuelle:
1 janv. 1970 à 03:00:00 (il y a 54 ans)

Packagist: skeeks/cms-rp-view-widget

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

:

Type: Компонент

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

Tous les commentaires (0)
Sans commentaires

dev-master — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

dev-master-n — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

2.0.0.1 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

2.0.0 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.5 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.4 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.3.1 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.3 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.2 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.1 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.0 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.0-alpha2 — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

1.0.0-alpha — 1 janv. 1970 à 03:00:00 (il y a 54 ans)

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

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

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

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


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