2017 © Pedro Peláez
 

yii2-extension yii2-contacts

Yii2 Contacts

image

cinghie/yii2-contacts

Yii2 Contacts

  • Tuesday, July 10, 2018
  • by cinghie
  • Repository
  • 1 Watchers
  • 0 Stars
  • 182 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 136 % Grown

The README.md

Yii2 Contacts

License Latest Stable Version Latest Release Date Latest Commit Total Downloads, (*1)

Yii2 Contacts to create, manage, and delete contacts in a Yii2 site., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ php composer.phar require cinghie/yii2-contacts "*"

or add, (*5)

"cinghie/yii2-contacts": "*"

Configuration

1. Update yii2-contacts database schema

Make sure that you have properly configured db application component and run the following command:, (*6)

$ php yii migrate/up --migrationPath=@vendor/cinghie/yii2-contacts/migrations

With contacts table, will be installed also the country phonecode table, (*7)

2. Set configuration file

Set on your configuration file, (*8)

'modules' => [ 

    // Yii2 Contacts
    'contacts' => [
        'class' => 'cinghie\contacts\Contacts'
     ],

]   

Overrides

Override controller example, on modules config, (*9)

'modules' => [ 

    'contacts' => [ 
        'class' => 'cinghie\contacts\Contacts',
        'controllerMap' => [
            'contacts' => 'app\controllers\ContactsController',
            'phonecode' => 'app\controllers\PhonecodeController',
        ]
    ]

],

Override models example, on modules config, (*10)

'modules' => [ 

    'contacts' => [ 
        'class' => 'cinghie\contacts\Contacts',
        'modelMap' => [
            'Contacts' => 'app\models\Contacts',
            'Countriescodes' => 'app\models\Countriescodes',
        ]
    ]

],

Override view example, on components config, (*11)

'components' => [ 

    'view' => [
        'theme' => [
            'pathMap' => [
                '@cinghie/contacts/views/contacts' => '@app/views/contacts/contacts',
            ],
        ],
    ],

],

Permissions

To access the module actions the user must have this permissions:, (*12)

  • Create: contacts-create-contacts
  • Delete: contacts-delete-all-contacts or contacts-delete-his-contacts
  • Index: contacts-index-contacts
  • Update: contacts-update-all-contacts or contacts-update-his-contacts
  • View: contacts-views-all-contacts or contacts-views-his-contacts

URLS

  • Contacts: PathToApp/index.php?r=contacts/contacts/index
  • Contacts with Pretty Urls: PathToApp/contacts/contacts/index

The Versions

10/07 2018

dev-master

9999999-dev https://github.com/cinghie/yii2-contacts

Yii2 Contacts

  Sources   Download

BSD-3-Clause GNU General Public License Version 3

The Requires

 

yii2 yii2 contacts yii2 contacts form yii2 contacts manager yii2 contacts create yii2 address book

20/06 2018

0.9.4

0.9.4.0 https://github.com/cinghie/yii2-contacts

Yii2 Contacts

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii2 contacts yii2 contacts form yii2 contacts manager yii2 contacts create yii2 address book

05/06 2017

0.9.3

0.9.3.0 https://github.com/cinghie/yii2-contacts

Yii2 Contacts

  Sources   Download

GNU General Public License Version 3

The Requires

 

yii2 yii2 contacts yii2 contacts form yii2 contacts manager yii2 contacts create

02/06 2017

0.9.2

0.9.2.0 https://github.com/cinghie/yii2-contacts

Yii2 Contacts

  Sources   Download

GNU General Public License Version 3

The Requires

 

yii2 yii2 contacts yii2 contacts form yii2 contacts manager yii2 contacts create

01/06 2017

0.9.1

0.9.1.0 https://github.com/cinghie/yii2-contacts

Yii2 Contacts

  Sources   Download

GNU General Public License Version 3

The Requires

 

yii2 yii2 contacts yii2 contacts form yii2 contacts manager yii2 contacts create