97fb6489
Yarik
test
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
namespace frontend\controllers;
use Yii;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
use frontend\models\SignupForm;
use frontend\models\ContactForm;
use frontend\models\Options;
use frontend\models\OptionValues;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use frontend\models\OptionsToValues;
use yii\validators\EmailValidator;
use common\models\User;
use yii\helpers\VarDumper;
use common\models\Page;
use frontend\models\Option;
use common\models\Social;
/**
* Site controller
*/
class PerformerController extends Controller
{
public $layout = 'performer';
|
fbdb1f1c
Yarik
test
|
33
34
|
public $defaultAction = 'common';
|
97fb6489
Yarik
test
|
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/**
* @inheritdoc
*/
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
'captcha' => [
'class' => 'yii\captcha\CaptchaAction',
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
],
];
}
|
bdee266b
Yarik
test
|
51
|
public function actionIndex()
|
97fb6489
Yarik
test
|
52
|
{
|
bdee266b
Yarik
test
|
53
|
$this->redirect(['site/index']);
|
97fb6489
Yarik
test
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
}
public function actionCommon(/*$performer_id*/)
{
return $this->render('common');
}
public function actionPortfolio(/*$performer_id*/)
{
return $this->render('portfolio');
}
public function actionBlogList(/*$performer_id*/)
{
return $this->render('blog-list');
}
public function actionBlogView(/*$performer_id, $article_id*/)
{
return $this->render('blog-view');
}
|
fbdb1f1c
Yarik
test
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
public function actionReview(/*$performer_id*/)
{
return $this->render('review');
}
public function actionWorkplace(/*$performer_id*/)
{
return $this->render('workplace');
}
public function actionGallery(/*$performer_id*/)
{
$this->layout = 'gallery';
return $this->render('gallery');
}
|
97fb6489
Yarik
test
|
91
|
}
|