demi/helpers

A set of Yii2 helpers

Installs: 195

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.12 2017-11-21 22:57 UTC

This package is auto-updated.

Last update: 2024-10-27 21:44:52 UTC


README

A set of Yii2 helpers

Installation

Run

composer require "demi/helpers" "dev-master"

Configuration

For enabling PHP 5.5 password hashing by Yii secure component: In config file common/config/main.php:

return [
    'components' => [
        'security' => [
            'passwordHashStrategy' => 'password_hash',
        ],
    ],
];

Usage

gii model generator

$config['modules']['gii'] = [
    'class'      => 'yii\gii\Module',
    'generators' => [
        'model'   => [
            'class'     => 'yii\gii\generators\model\Generator',
            'templates' => ['my_model' => '@demi/helpers/gii'],
        ]
    ]
];

big action grid column

<?= GridView::widget([
    'columns' => [
        ['class' => 'demi\helpers\grid\BigActionColumn'],
    ],
]); ?>