PHP code example of nikitakls / yii2-support-ticket

1. Go to this page and download the library: Download nikitakls/yii2-support-ticket library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nikitakls / yii2-support-ticket example snippets


'modules'   => [
    'class' => \nikitakls\support\Support::class,
    'support'   => 'nikitakls\support\Support',
    'layout' => '@frontend/views/layouts/profile',
    'guestLayout' => '@frontend/views/layouts/main',
    'isBackend' => false,
    'supportEmail' => '[email protected]',
    'sendEmailToSupport' => true,
    'sendEmailToUser' => true,
    'uploadBehavior' => [
        'filePath' => '@filePath/origin/support/[[attribute_ticket_id]]/[[pk]].[[extension]]',
        'fileUrl' => '@fileUrl/origin/support/[[attribute_ticket_id]]/[[pk]].[[extension]]',
    ]
],

'modules'   => [
    ...
    'isBackend' => true,
],

php composer.phar