Commit 1d5b8115fd640da460ba941d24ffdffeaf55064f

Authored by Administrator
2 parents be455470 1f651082

Merge remote-tracking branch 'origin/master'

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);
... ...
frontend/views/company/portfolio-view.php 0 → 100644
  1 +<?php
  2 +
  3 +use \yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View
  6 + * @var $company common\models\User
  7 + */
  8 +$this->params['company'] = $company;
  9 +
  10 +$this->title = 'My Yii Application';
  11 +?>
0 12 \ No newline at end of file
... ...
frontend/views/performer/portfolio-view.php 0 → 100644
  1 +<?php
  2 +
  3 +use \yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View
  6 + * @var $user common\models\User
  7 + */
  8 +$this->params['user'] = $user;
  9 +
  10 +$this->title = 'My Yii Application';
  11 +?>
0 12 \ No newline at end of file
... ...