Commit 1f651082fb1e422125260c2ed35eed904e49d43e
1 parent
3d620c67
test
Showing
4 changed files
with
36 additions
and
10 deletions
Show diff stats
frontend/controllers/CompanyController.php
... | ... | @@ -83,6 +83,13 @@ class CompanyController extends Controller |
83 | 83 | ]); |
84 | 84 | } |
85 | 85 | |
86 | + public function actionPortfolioView($company_id /*, $portfolio_id*/) | |
87 | + { | |
88 | + $company = User::findOne($company_id); | |
89 | + | |
90 | + return $this->render('portfolio-view', ['company' => $company]); | |
91 | + } | |
92 | + | |
86 | 93 | public function actionTeam($company_id) |
87 | 94 | { |
88 | 95 | $company = User::findOne($company_id); | ... | ... |
frontend/controllers/PerformerController.php
... | ... | @@ -23,9 +23,7 @@ class PerformerController extends Controller |
23 | 23 | { |
24 | 24 | public $layout = 'performer'; |
25 | 25 | public $user; |
26 | - | |
27 | - | |
28 | - | |
26 | + public $defaultAction = 'common'; | |
29 | 27 | |
30 | 28 | /** |
31 | 29 | * @inheritdoc |
... | ... | @@ -43,13 +41,6 @@ class PerformerController extends Controller |
43 | 41 | ]; |
44 | 42 | } |
45 | 43 | |
46 | - | |
47 | - public function actionIndex() | |
48 | - { | |
49 | - $this->redirect('site/index'); | |
50 | - | |
51 | - } | |
52 | - | |
53 | 44 | public function actionCommon($performer_id) |
54 | 45 | { |
55 | 46 | |
... | ... | @@ -138,6 +129,12 @@ class PerformerController extends Controller |
138 | 129 | ]); |
139 | 130 | } |
140 | 131 | |
132 | + public function actionPortfolioView($performer_id/*, $portfolio_id*/) | |
133 | + { | |
134 | + $user = User::findOne($performer_id); | |
135 | + return $this->render('portfolio-view', ['user' => $user]); | |
136 | + } | |
137 | + | |
141 | 138 | public function actionBlogList($performer_id) |
142 | 139 | { |
143 | 140 | $user = User::findOne($performer_id); | ... | ... |