for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created for IG Monitoring.
* User: jakim <[email protected]>
* Date: 11.01.2018
*/
namespace app\commands;
use app\models\Account;
use app\models\Tag;
use yii\console\Controller;
use yii\console\widgets\Table;
class MonitoringController extends Controller
{
public function actionIndex()
$this->actionAccounts();
$this->actionTags();
}
public function actionAccounts()
echo Table::widget([
'headers' => [
'ID',
'Username',
],
'rows' => Account::find()
->select([
'id',
'username',
])
->monitoring()
->asArray()
->all(),
]);
public function actionTags()
'Tag',
'rows' => Tag::find()
'name',