2017 © Pedro Peláez
 

yii2-extension yii2-crud-buttons

It is a widget for Yii2 framework which control a crud buttons.

image

dizews/yii2-crud-buttons

It is a widget for Yii2 framework which control a crud buttons.

  • Friday, February 9, 2018
  • by dizews
  • Repository
  • 0 Watchers
  • 1 Stars
  • 456 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Crud buttons Widget

It is a widget for Yii2 framework which control a crud buttons., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist dizews/yii2-crud-buttons "0.1.*"

or add, (*4)

"dizews/yii2-crud-buttons": "0.1.*"

to the require section of your composer.json., (*5)

General Usage

<?= CrudButtons::widget(['model' => isset($model) ? $model : null]); ?>

If you want to get more understandable titles of buttons you should set modelName., (*6)

<?= CrudButtons::widget(['model' => isset($model) ? $model : null,
    'modelName' => function ($actionId) {
        $count = 1;
        if ($actionId == 'multi-update' || $actionId == 'multi-delete') {
            $count = 10; //any number for plural
        }
        return Yii::t('app', '{n, plural, =1{User} other{Users}}', ['n' => $count])
    }
]); ?>

The Versions

09/02 2018

dev-master

9999999-dev

It is a widget for Yii2 framework which control a crud buttons.

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

by Vladimir Zbrailov

yii2 crud widget

06/08 2014

0.1.1

0.1.1.0

It is a widget for Yii2 framework which control a crud buttons.

  Sources   Download

BSD 3-Clause

The Requires

 

by Vladimir Zbrailov

yii2 crud widget

24/07 2014

0.1.0

0.1.0.0

It is a widget for Yii2 framework which control a crud buttons.

  Sources   Download

BSD 3-Clause

The Requires

 

by Vladimir Zbrailov

yii2 crud widget