lsof -wni tcp:3000
kill -9 PID
lsof -wni tcp:3000
kill -9 PID
<?php | |
[ | |
'attribute' => 'foo', | |
'value' => 'foo', | |
'label' => Yii::t('adminpanel', 'Foo'), | |
'filter' => Foo::getFooList(), | |
'filterType' => GridView::FILTER_SELECT2, | |
'filterOptions' => ['style' => 'min-width: 85px'], | |
'filterWidgetOptions' => [ |
<?php | |
(new DateTime())->getTimestamp(); |
<?php | |
/** | |
* Set foo field | |
* | |
* @param boolean $baz | |
* | |
* @return boolean | |
*/ |
<?php | |
// model | |
public function getFoo() { | |
return true; | |
} |
<?php | |
// config/web.php:186 | |
'mailer' => [ | |
'class' => 'yii\swiftmailer\Mailer', | |
'messageClass' => 'app\components\Message', | |
'htmlLayout' => '@app/modules/account/mail/layouts/html', | |
'useFileTransport' => true, // <-- | |
], |
<?php | |
// new \yii\db\Expression('ISNULL(foo)'), | |
if ($this->foo === '0') { | |
$query->andFilterWhere(['is', 'foo', new \yii\db\Expression('null')]) | |
->orFilterWhere(['=', 'foo', $this->foo]); | |
} |
<?php | |
// ... | |
[ | |
'class' => 'kartik\grid\DataColumn', | |
'attribute' => 'foo', | |
'format' => 'html', // <===== | |
'value' => function (Limit $model) { | |
return '-'; |
mt-3 mt-sm-0 |