Egorka
6 years ago
13 changed files with 73 additions and 49 deletions
@ -1,3 +1,33 @@
|
||||
<?php |
||||
return [ |
||||
|
||||
$config = [ |
||||
'components' => [ |
||||
'authClientCollection' => [ |
||||
'class' => 'yii\authclient\Collection', |
||||
'clients' => [ |
||||
'yandex' => [ |
||||
'class' => 'yii\authclient\clients\Yandex', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'google' => [ |
||||
'class' => 'yii\authclient\clients\Google', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'facebook' => [ |
||||
'class' => 'yii\authclient\clients\Facebook', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'vk' => [ |
||||
'class' => 'yii\authclient\clients\VKontakte', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
], |
||||
] |
||||
], |
||||
]; |
||||
|
||||
return $config; |
||||
|
@ -1,29 +0,0 @@
|
||||
<?php |
||||
/** |
||||
* Created by Error202 |
||||
* Date: 04.06.2018 |
||||
*/ |
||||
|
||||
namespace frontend\components; |
||||
|
||||
|
||||
use yii\web\Controller; |
||||
use Yii; |
||||
|
||||
class FrontendController extends Controller |
||||
{ |
||||
public function init() { |
||||
parent::init(); |
||||
$theme = 'start'; // sport |
||||
|
||||
Yii::$app->view->theme = new \yii\base\Theme([ |
||||
'basePath' => '@webroot/themes/' . $theme, |
||||
'baseUrl' => '@web/themes/' . $theme, |
||||
'pathMap' => [ |
||||
'@common/modules' => '@webroot/themes/' . $theme . '/modules', |
||||
'@frontend/views' => '@webroot/themes/' . $theme, |
||||
'@frontend/widgets' => '@webroot/themes/' . $theme . '/widgets', |
||||
], |
||||
]); |
||||
} |
||||
} |
Loading…
Reference in new issue