2017 © Pedro PelΓ‘ez
 

yii2-extension yii2-client

CRUD for a firm clients

image

dvizh/yii2-client

CRUD for a firm clients

  • Wednesday, June 28, 2017
  • by pistol88
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 44 % Grown

The README.md

Yii2-client

Π‘ΠΏΡ€Π°Π²ΠΎΡ‡Π½ΠΈΠΊ ΠΊΠ»ΠΈΠ΅Π½Ρ‚ΠΎΠ²., (*1)

Π’ состав Π²Ρ…ΠΎΠ΄ΠΈΡ‚ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ ΡƒΠΏΡ€Π°Π²Π»ΡΡ‚ΡŒ (CRUD):, (*2)

  • ΠšΠ»ΠΈΠ΅Π½Ρ‚Ρ‹ (имя, Ρ„ΠΎΡ‚ΠΎ, статус ΠΈ Ρ‚.Π΄.)
  • ΠšΠ°Ρ‚Π΅Π³ΠΎΡ€ΠΈΠΈ сотрудников
  • ΠžΠ±Ρ€Π°Ρ‰Π΅Π½ΠΈΡ ΠΊΠ»ΠΈΠ΅Π½Ρ‚ΠΎΠ²

Установка

Π’Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ, (*3)

php composer require dvizh/yii2-client "*"

Или Π΄ΠΎΠ±Π°Π²ΠΈΡ‚ΡŒ Π² composer.json, (*4)

"dvizh/yii2-client": "*",

И Π²Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ, (*5)

php composer update

Π”Π°Π»Π΅Π΅, ΠΌΠΈΠ³Ρ€ΠΈΡ€ΡƒΠ΅ΠΌ Π±Π°Π·Ρƒ:, (*6)

php yii migrate --migrationPath=vendor/dvizh/yii2-client/src/migrations

НС Π·Π°Π±Ρ‹Π²Π°Π΅ΠΌ Π²Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ ΠΌΠΈΠ³Ρ€Π°Ρ†ΠΈΡŽ ΠΌΠΎΠ΄ΡƒΠ»ΡƒΠΉ, ΠΎΡ‚ ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… зависит client, (*7)

Настройка

Π’ ΡΠ΅ΠΊΡ†ΠΈΡŽ modules ΠΊΠΎΠ½Ρ„ΠΈΠ³Π° Π΄ΠΎΠ±Π°Π²ΠΈΡ‚ΡŒ:, (*8)

    'modules' => [
        //..
        'client' => [
            'class' => 'dvizh\client\Module',
            'adminRoles' => ['administrator'],
        ],
        //..
    ]

Π’ ΡΠ΅ΠΊΡ†ΠΈΡŽ components:, (*9)

    'client' => [
        'class' => 'dvizh\client\Client',
    ],

ИспользованиС

  • ?r=client/default/index - список CRUD

Π’ΠΈΠ΄ΠΆΠ΅Ρ‚Ρ‹

  • dvizh\client\widgets\Calls::widget(['client' => $clientModel]); - Π²Ρ‹Π²Π΅Π΄Π΅Ρ‚ список ΠΎΠ±Ρ€Π°Ρ‰Π΅Π½ΠΈΠΉ с Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒΡŽ Π΄ΠΎΠ±Π°Π²ΠΈΡ‚ΡŒ Π½ΠΎΠ²ΠΎΠ΅

The Versions

28/06 2017