<? echo $form->field($model1, 'operation')->hiddenInput(['value' => 'hidden value']); ?>
$myModel = MyModel::find()->orderBy('lft')->all();
<script>
var base_url = '<?= \Yii::$app->request->hostInfo . "/" . \Yii::$app->language; ?>';
</script>
jQuery.post(base_url + '/site/request-password-reset')
var passwordResetUrl = '<?= Url::toRoute([...]) ?>';
$( "input:checkbox" ).on("change", function() {
$('.reg').slideToggle();
});
<?php
$data = [
[
'name' => 'Брянск'
],
[
'name' => 'Москва'
],
[
'name' => 'Бобруйск'
],
];
usort($data, function ($v1, $v2) {
return strcmp($v1['name'], $v2['name']);
});
$letter = null;
foreach ($data as $v) {
$currentLetter = mb_substr($v['name'], 0, 1, 'utf-8');
if ($currentLetter !== $letter) {
$letter = $currentLetter;
echo "--- $letter ---", PHP_EOL;
}
echo $v['name'], PHP_EOL;
}
substr(md5(md5 (<динамическая соль> . $password) . <статическая соль>), 0, 16);
substr($login, 0, 3) . ($password, 1, 5) . $login[4] .$password[0] . <статическая соль>
button:active, button:focus {
outline: none;
}
button::-moz-focus-inner {
border: 0;
}
UPDATE modx_users SET hash_class = 'hashing.modMD5', password = MD5('the-new-password') WHERE username = 'theusername';