Beispiel #1
0
 public function beforeAction($action)
 {
     if ($action->id == 'posts') {
         Yii::$app->view->params['breadcrumbs'][] = Yii::t('blog', 'Blog');
     } else {
         Yii::$app->view->params['breadcrumbs'][] = ['label' => Yii::t('blog', 'Blog'), 'url' => Url::toRoute(['/blog/front/posts'])];
     }
     return parent::beforeAction($action);
 }
 /**
  * @param string $id
  * @param Module $module
  * @param UserFinder $finder
  * @param array  $config
  */
 public function __construct($id, $module, UserFinder $finder, $config = [])
 {
     $this->finder = $finder;
     parent::__construct($id, $module, $config);
 }