Commit 1d5b8115fd640da460ba941d24ffdffeaf55064f
Merge remote-tracking branch 'origin/master'
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 | |
| ... | ... | @@ -139,6 +130,12 @@ class PerformerController extends Controller |
| 139 | 130 | ]); |
| 140 | 131 | } |
| 141 | 132 | |
| 133 | + public function actionPortfolioView($performer_id/*, $portfolio_id*/) | |
| 134 | + { | |
| 135 | + $user = User::findOne($performer_id); | |
| 136 | + return $this->render('portfolio-view', ['user' => $user]); | |
| 137 | + } | |
| 138 | + | |
| 142 | 139 | public function actionBlogList($performer_id) |
| 143 | 140 | { |
| 144 | 141 | $user = User::findOne($performer_id); | ... | ... |