No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
behaviors
console
gii
grid
LICENSE
Password.php
README.md
Str.php
VD.php
composer.json

README.md

yii2-helpers

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'],
    ],
]); ?>