1755c393
Yarik
Basic template in...
|
1
|
<?php
|
8596ef4b
Alexey Boroda
-Seo component ready
|
2
3
|
use artbox\core\components\SeoComponent;
|
1ceb3338
Alexey Boroda
-Added gallery
|
4
|
$mail = require( 'filedb/mail.php' );
|
e62d1f91
Alexey Boroda
-Emails on feedba...
|
5
|
|
6966d71b
Yarik
Makeup
|
6
7
|
return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
6e516b40
Yarik
Layout complete
|
8
9
|
'modules' => [
'imagemanager' => [
|
3e6486de
Alexey Boroda
-Gallery attached...
|
10
|
'class' => 'artbox\core\components\imagemanager\Module',
|
6e516b40
Yarik
Layout complete
|
11
12
13
14
15
16
17
18
19
20
|
'canUploadImage' => true,
'canRemoveImage' => function () {
return true;
},
'setBlameableBehavior' => false,
'cssFiles' => [
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
],
],
],
|
6966d71b
Yarik
Makeup
|
21
|
'components' => [
|
6e516b40
Yarik
Layout complete
|
22
|
'cache' => [
|
6966d71b
Yarik
Makeup
|
23
24
|
'class' => 'yii\caching\FileCache',
],
|
6e516b40
Yarik
Layout complete
|
25
|
'i18n' => [
|
6966d71b
Yarik
Makeup
|
26
|
'translations' => [
|
e62d1f91
Alexey Boroda
-Emails on feedba...
|
27
|
'core' => [
|
6966d71b
Yarik
Makeup
|
28
|
'class' => 'yii\i18n\PhpMessageSource',
|
46b1243b
Yarik
v0.0.3-stable
|
29
|
'basePath' => '@artbox/core/messages',
|
da98f90d
Yarik
Models and contro...
|
30
|
],
|
e62d1f91
Alexey Boroda
-Emails on feedba...
|
31
|
'app' => [
|
5e6d26a9
Yarik
RC
|
32
33
34
|
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@common/messages',
],
|
b313037a
Alexey Boroda
-Flesh widget ready
|
35
36
|
],
],
|
6e516b40
Yarik
Layout complete
|
37
|
'filedb' => [
|
6966d71b
Yarik
Makeup
|
38
|
'class' => 'yii2tech\filedb\Connection',
|
1ceb3338
Alexey Boroda
-Added gallery
|
39
|
'path' => '@common/config/filedb',
|
6966d71b
Yarik
Makeup
|
40
|
],
|
6e516b40
Yarik
Layout complete
|
41
|
'sitemapdb' => [
|
a42025b8
Yarik
Sitemap and slugb...
|
42
|
'class' => 'yii2tech\filedb\Connection',
|
7ea1eaf9
Alexey Boroda
-Site-map files m...
|
43
|
'path' => '@common/config/filedb',
|
a42025b8
Yarik
Sitemap and slugb...
|
44
45
|
'primaryKeyName' => 'id',
],
|
6e516b40
Yarik
Layout complete
|
46
|
'seo' => [
|
8596ef4b
Alexey Boroda
-Seo component ready
|
47
48
|
'class' => SeoComponent::className(),
],
|
6e516b40
Yarik
Layout complete
|
49
|
'imagemanager' => [
|
3e6486de
Alexey Boroda
-Gallery attached...
|
50
51
52
|
'class' => 'artbox\core\components\imagemanager\components\ImageManagerGetPath',
'mediaPath' => dirname(dirname(__DIR__)) . '/storage',
'cachePath' => '../../storage/cache',
|
6e516b40
Yarik
Layout complete
|
53
54
55
|
'useFilename' => true,
'absoluteUrl' => false,
],
|
e62d1f91
Alexey Boroda
-Emails on feedba...
|
56
57
58
59
60
61
62
63
64
65
66
67
|
'smtpmailer' => [
'class' => 'yii\swiftmailer\Mailer',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => $mail[ 1 ][ 'host' ],
'username' => $mail[ 1 ][ 'user' ],
'password' => $mail[ 1 ][ 'pass' ],
'port' => '587',
'encryption' => 'tls',
],
'viewPath' => '@common/mail'
],
|
b313037a
Alexey Boroda
-Flesh widget ready
|
68
|
],
|
6966d71b
Yarik
Makeup
|
69
|
];
|