it-yakutia/yii2-partner

Partner for yii2

Installs: 89

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.0 2022-06-21 21:30 UTC

This package is auto-updated.

Last update: 2024-10-22 02:49:52 UTC


README

Partner server for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist it-yakutia/yii2-partner "*"

or add

"it-yakutia/yii2-partner": "*"

to the require section of your composer.json file.

Add migration path in your console config file:

'controllerMap' => [
    ...
    'migrate' => [
    ...
        'migrationPath' => [
            ...
            '@vendor/it-yakutia/partner/src/migrations',
        ],
    ],
]

Usage

Once the extension is installed, simply use it in your code by :

<?= Url::toRoute(['/partner/back/index']); ?>

Use in frontend:

<?= \ityakutia\partner\widgets\partner\PartnerWidget::widget(); ?>

Add RBAC roles:

partner

Add fixtures:

php yii fixture Partner --namespace='ityakutia\partner\tests\fixtures'

Add fixtures in docker:

php yii fixture Partner --namespace='ityakutia\partner\tests\fixtures' --interactive=0