Skip to content

demisang/yii2-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages