The ticket system for yii2
2.0.0
Fixed encodings for mysql
Fixed bug with viewing any tickets
Added the ability to set the administrator ID for access to the admin panel
Removed
1.0.8
Minor changes
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 "ricco/yii2-ticket:1.0.8"
'modules' => [
'ticket' => [
'class' => ricco\ticket\Module::className(),
],
],
Be sure to add in AppAssets section in js the link on bootstrap.js
public $js = [
/** Other scripts */
'//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.js',
];
index.php?r=ticket/ticket/index
index.php?r=ticket/admin/index
'ticket' => [
'class' => ricco\ticket\Module::className(),
'controllerMap' => [
'admin' => [
'class' => \app\controllers\TicketAdminController::class,
],
],
],
'view' => [
'theme' => [
'pathMap' => [
'@ricco/ticket/views' => '@app/views/ticket',
],
],
],
TicketHead::OPEN = 0 - Open
TicketHead::WAIT = 1 - Waiting
TicketHead::ANSWER = 2 - Answered
TicketHead::CLOSED = 3 - Closed
TicketHead::getNewTicketCount()
Returns a count of all tickets with the status "0" или "1"
TicketHead::getNewTicketCountUser($status)
Returns the number teketo for the current user, by default all statuses are equal to "0"
yii migrate --migrationPath=@vendor/ricco/yii2-ticket/migrations
$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