Ejemplo n.º 1
0
 /**
  * Prequisites action checks application requirement using the SelfTest
  * Libary
  *
  * (Step 2)
  */
 public function actionPrerequisites()
 {
     return $this->render('prerequisites', ['hasError' => PrerequisitesList::hasError()]);
 }
Ejemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use humhub\modules\admin\widgets\PrerequisitesList;
?>
<p><?php 
echo Yii::t('AdminModule.views_setting_selftest', 'Checking HumHub software prerequisites.');
?>
</p>

<?php 
echo PrerequisitesList::widget();
?>
<br>

<?php 
echo Html::a(Yii::t('AdminModule.views_setting_selftest', 'Re-Run tests'), Url::to(['prerequisites']), array('class' => 'btn btn-primary'));
?>