Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Oct 17, 2016
1 parent 02981ab commit 114c370
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion common/config/main.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php/** * Общий конфиг для всего приложения * * @author Semenov Alexander <semenov@skeeks.com> * @link http://skeeks.com/ * @copyright 2010-2014 SkeekS (Sx) * @date 15.10.2014 * @since 1.0.0 */$config = [ 'name' => 'SkeekS CMS', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'on beforeRequest' => function ($event) { \Yii::setAlias('template', '@app/views'); }, 'components' => [ 'db' => include_once __DIR__ . '/db.php', 'urlManager' => [ 'rules' => [ 'search' => 'cmsSearch/result', [ 'class' => \skeeks\cms\components\urlRules\UrlRuleContentElement::className(), ], [ 'class' => \skeeks\cms\components\urlRules\UrlRuleTree::className(), ] ] ], 'cache' => [ 'class' => 'yii\caching\FileCache', ], 'assetManager' => [ 'linkAssets' => true, ], 'settings' => [ 'class' => 'common\components\SettingsComponent', ], 'mailer' => [ 'transport' => [ 'class' => 'Swift_SmtpTransport', 'host' => 'smtp.yandex.ru', 'username' => 'info@skeeks.com', 'password' => 'QuekiarputkabIvIgoySeefKo', 'port' => '465', 'encryption' => 'ssl', ], ], 'cmsAgent' => [ 'onHitsEnabled' => false ], ],];return $config;
<?php/** * Общий конфиг для всего приложения * * @author Semenov Alexander <semenov@skeeks.com> * @link http://skeeks.com/ * @copyright 2010-2014 SkeekS (Sx) * @date 15.10.2014 * @since 1.0.0 */$config = [ 'name' => 'SkeekS CMS', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'on beforeRequest' => function ($event) { \Yii::setAlias('template', '@app/views'); }, 'components' => [ 'db' => include_once __DIR__ . '/db.php', 'urlManager' => [ 'rules' => [ 'search' => 'cmsSearch/result', [ 'class' => \skeeks\cms\components\urlRules\UrlRuleContentElement::className(), ], [ 'class' => \skeeks\cms\components\urlRules\UrlRuleTree::className(), ] ] ], 'cache' => [ 'class' => 'yii\caching\FileCache', ], 'assetManager' => [ 'linkAssets' => true, ], 'settings' => [ 'class' => 'common\components\SettingsComponent', ], 'cmsAgent' => [ 'onHitsEnabled' => false ], ],];return $config;
Expand Down
8 changes: 1 addition & 7 deletions frontend/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
},
'components' =>
[
'httpBasicAuth' =>
[
'class' => 'skeeks\yii2\httpBasicAuth\HttpBasicAuthComponent',
'login' => 'login',
'password' => 'password',
'usePasswordHash' => false,
],

'errorHandler' => [
'errorAction' => 'cms/error/error',
],
Expand Down

0 comments on commit 114c370

Please sign in to comment.