PHP
2
Вклад в тег
Yii::$app->getSecurity()->generatePasswordHash($password);
$model = new User();
$model->emal = 'user@email.ru';
$model->setPassword(123456);
$model->save();
public function setPassword($password)
{
$this->password = Yii::$app->security->generatePasswordHash($password);
}
[
'label' => '<i class="glyphicon glyphicon-briefcase"></i> Вкладка 3',
'content' => DetailView::widget([
'id'=>'info1',
'model' => $model,
'panel' => [
'heading' => '<h3 class="panel-title">'.$model->Name.'</h3>',
'type'=>DetailView::TYPE_SUCCESS,
],
'attributes' => $info_three,
]),
'encode'=>false,
'headerOptions' => ['class'=> $value ? '' : 'disabled']
],