2017 © Pedro Peláez
 

yii2-extension yii2-ticket

A ticket system for Yii2 websites

image

amintado/yii2-ticket

A ticket system for Yii2 websites

  • Sunday, October 29, 2017
  • by amintado
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

yii2-ticket

The ticket system for yii2, (*1)

The stable version 1.0.8 has been released
1.0.8
     Minor changes
Released stable version 1.0.7
1.0.7
    Changed design

1.0.6
    Added attachment images.
    Added ticket creation from the admin panel.
    Add prefixo table.
    Fixed routing.

1.0.5
    Removed notifications about closed tickets.
    Removed unnecessary code.
    Sending mail is transferred to the model.

1.0.4
    Added download of images.

Install composer require "amintado/yii2-ticket:1.0.8"

Add to project

'ticket' => [
            'class'         => amintado\ticket\Module::className(),
        ],

Be sure to add in AppAssets section in js the link on bootstrap.js, (*2)

 public $js = [
        /** Other scripts */
        '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.js',
    ];

GET routes

index.php?r=ticket/
index.php?r=ticket/admin/index

Override class

'ticket' => [
            'class'         => amintado\ticket\Module::className(),
            'controllerMap' => [
                'admin' => [
                    'class' => \app\controllers\TicketAdminController::class,
                ],
            ],
        ],

Override views

'view'         => [
            'theme' => [
                'pathMap' => [
                    '@amintado/ticket/views' => '@app/views/ticket',
                ],
            ],
        ],

The status of the ticket

TicketHead::OPEN = 0 - Open, (*3)

TicketHead::WAIT = 1 - Waiting, (*4)

TicketHead::ANSWER = 2 - Answered, (*5)

TicketHead::CLOSED = 3 - Closed, (*6)

Available methods

TicketHead::getNewTicketCount(), (*7)

Returns a count of all tickets with the status "0" или "1", (*8)

TicketHead::getNewTicketCountUser($status), (*9)

Returns the number teketo for the current user, by default all statuses are equal to "0", (*10)

Migration

yii migrate --migrationPath=@vendor/amintado/yii2-ticket/migrations

Configuration of the module

$mailSendAnswer = true, email will be sent notifications about the answer

$subjectAnswer = string Subject line of email response

$userModel = model Object user

$qq = array of Array of departments to which the issue

$admin = array of Array administrators

Public part

, (*11)

Creating a ticket

, (*12)

Question-Answer

, (*13)

Admin

, (*14)

Admin-Answer

, (*15)

Admin Creating a ticket

, (*16)

The Versions

29/10 2017

dev-master

9999999-dev https://github.com/amintado/yii2-ticket

A ticket system for Yii2 websites

  Sources   Download

MIT

The Requires

 

by Avatar ricco381
by Avatar amintado

yii2 ticket system yii2-ticket ricco amintado

13/08 2016

1.0.7

1.0.7.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco

13/08 2016

1.0.6

1.0.6.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco

19/07 2016

1.0.4

1.0.4.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco

05/07 2016

1.0.3

1.0.3.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco

28/06 2016

1.0.2

1.0.2.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco

28/06 2016

1.0.1

1.0.1.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco

19/06 2016

1.0

1.0.0.0 https://bitbucket.org/Ricco381/yii2-ticket/src

A ticket system for website

  Sources   Download

MIT

The Requires

 

by Avatar ricco381

yii2 ticket system yii2-ticket ricco