wadeshuler/yii2-user-leads

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii2 Leads system for your user's leads.

v1.0.1 2022-04-03 04:33 UTC

This package is auto-updated.

Last update: 2022-04-03 04:35:55 UTC


README

Yii2 Leads system for your user's leads.

This package was put together in a rush. This README may not be complete. The goal was to simply provide a place to house basic lead information. You will need to create your own Controller to handle your form submission, bring in the Lead model, save and do whatever else you need.

Installation

The preferred way to install this extension is through composer

Either run

composer require --prefer-dist wadeshuler/yii2-user-leads

or add

"wadeshuler/yii2-user-leads": "~1.0"

to the require section of your application's composer.json file.

Add to backend/config/main.php (advanced), config/web.php (basic):

'modules' => [
    // ....
    'lead' => [
        'class' => 'wadeshuler\lead\Module',
        'controllerNamespace' => 'wadeshuler\lead\controllers\admin',
        'viewPath' => '@vendor/wadeshuler/yii2-user-leads/views/admin',
    ],
],

Add to frontend/config/main.php (advanced):

'modules' => [
    // ....
    'lead' => [
        'class' => 'wadeshuler\lead\Module',
        'controllerNamespace' => 'wadeshuler\lead\controllers\user',
        'viewPath' => '@vendor/wadeshuler/yii2-user-leads/views/user',
    ],
],

Migration

./yii migrate/up --migrationPath=@wadeshuler/lead/migrations/

Routes

Here are the main routes which you would link to via your sidebar:

  • lead/manage/index
  • lead/manage/create (admin)
  • lead/manage/view?id=x
  • lead/manage/delete?id=x

Donate

Please consider donating if you find my code useful.

PayPal Donate