Beispiel #1
0
 /**
  * Test widget exception
  *
  * @expectedException yii\base\InvalidParamException
  */
 public function testExceptionThrow()
 {
     UserMenu::widget();
 }
Beispiel #2
0
use yii\helpers\Html;
use yii\widgets\Pjax;
/* @var $this View */
/* @var $model User */
/* @var $accounts UserAccountForm[] */
/* @var $newAccount UserAccountForm */
/* @var $successMessage string */
/* @var $errorMessage string */
VCSBindingsAsset::register($this);
$this->title = Html::encode($model->name);
?>
<div class="panel panel-default">
    <div class="panel-heading"><?php 
echo Yii::t('user', 'VCS bindings');
?>
</div>

    <?php 
Pjax::begin(['enablePushState' => false]);
?>
        <?php 
echo $this->render('vcs-bindings-accounts', ['model' => $model, 'accounts' => $accounts, 'successMessage' => $successMessage, 'errorMessage' => $errorMessage]);
?>
    <?php 
Pjax::end();
?>
</div>

<?php 
$this->blocks['left_block'] = UserMenu::widget(['model' => $model, 'options' => ['class' => 'nav nav-pills nav-stacked']]);