amintado / yii2-module-inquery
A ticket system for Yii2 websites
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.6.0
- 2amigos/yii2-ckeditor-widget: ~2.1
- amintado/yii2-amintado-global-functions: @dev
- eonasdan/bootstrap-datetimepicker: @dev
- kartik-v/yii2-datecontrol: @dev
- kartik-v/yii2-widget-fileinput: @dev
- kartik-v/yii2-widget-select2: @dev
- yiisoft/yii2: ~2.0.6
- yiisoft/yii2-bootstrap: ~2.0.0
This package is not auto-updated.
Last update: 2025-03-02 07:48:16 UTC
README
this module is like ticket system and created for printing office app, but you can use it in another yii2 apps
mechanism
1- add some category with index.php?inquery\inquery-category
2- user will create an inquery request (An inquiry contains the request text,subject from the list of subjects,attachments)
3- The queue is queried for the answer.
4- admin will answer to inquery and inquery status will change to 'answered'.
5- then user will view your answer
Screenshots
Methods
this module has 5 event method:
- afterCreate($model); this method runs after created an inquery
- afterAnswer($model); this method runs after an inquery answered
- afterViewed($model); this method runs when admin seen an inquery
- CreateError($model); this method runs when an error occur in inquery create process
- AnswerError($model); this method runs when an error occur in inquery answer process
for use this methods you must create a Class that implements 'amintado\inquery\EventInterface' interface
for Example can use 'amintado\inquery\Event' class
Or you can create a class that extend from 'amintado\inquery\Event' class
Method are useful for send email,sms after an inquery action
config
add this code to app/config/main.php
file:
'inquery'=> [
'class'=>amintado\inquery\Module::className()
],
Module Parameters
- $jalaliDate :if you want use this module in
persian
language, you can change this parameter totrue
, then all dates will show in shamsi(jalali) format - $filesDirectory :set your custom directory for upload inquery attachments,default value is
'@frontend/dl'
- downloadUrl :set your upload directory Url,default URL is
'http://taban.dev/frontend/dl'
Dont Use '/' Character in the end of $downloadUrl
parameter value
- $eventClass :set your custom Event class namespace here(your class must implement from
'amintado\inquery\EventInterface'
interface OR extend from'amintado\inquery\Event'
class)
migration
for apply tables in your database,run this command:
yii migrate --migrationPath=@vendor/amintado/yii2-module-inquery/migration
URL
index.php?inquery/default
index.php?inquery/inquery-category
index.php?inquery/manage
localization
this module now translated to persian language you can Fork and send pull request in 'master' branch to translate it to your language
languages
- Persian:Full
- English:90%
date
- Jalali/Shamsi
- Gregorian
credits
- amintado programming and improve this module
- kartik-v create best GridView module for yii2 framework
Lisence
GNU General Public License v3.0