public static function setTitle(Component $model)
    {
        $title = $model->{self::behavior($model)->titleAttribute};
        if ($title)
            Yii::$app->view->title = $title;
    }
public static function setTitle(Component $model)
    {
        $title = $model->{self::behavior($model)->titleAttribute};
        if ($title)
            Yii::$app->view->title = $title;
    }
public static function setTitle ( Component $ model ) { $ title = $ model -> { self :: behavior ( $ model ) -> titleAttribute } ; if ( $ title ) Yii :: $ app -> view -> title = $ title ; }
Sets page title. If your layout

@param Component $model
Sets page title . If your layout