wadeshuler / yii2-user-leads
Yii2 Leads system for your user's leads.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- kartik-v/yii2-date-range: ~1.7
- yiisoft/yii2: ~2.0.13
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.