public function render($content = null)
{
if ($content === null) {
if (!isset($this->parts['{input}'])) {
$this->textInput();
}
if (!isset($this->parts['{label}'])) {
$this->label();
}
if (!isset($this->parts['{error}'])) {
$this->error();
}
if (!isset($this->parts['{hint}'])) {
$this->hint(null);
}
$content = strtr($this->template, $this->parts);
} elseif (!is_string($content)) {
$content = call_user_func($content, $this);
}
return $this->begin() . "\n" . $content . "\n" . $this->end();
}
<?= $form->field($model,'title')->textInput()?>
public function findModel()
{
if(!$model = Users::findOne(Yii::$app->user->identity->getId())){
return false;
}
return $model;
}
public function actionIndex()
{
return $this->render('index', ['model' => $this->findModel()]);
}
<?=
$form->field($model, 'attribut')->checkbox([
'onclick' => '
alert($(this).val())
'
])
?>
<Directory /home/rishat/workspace/web/laravelprojects/test/laravel/public>
AllowOverride All
Require all granted
</Directory>
sudo apt-get install tasksel
sudo apt-get install -f
sudo tasksel
sudo apt-get install phpmyadmin
echo ButtonDropdown::widget([
'label' => $current,
'dropdown' => [
'items' => $items,
],
'options' => [
'class' => 'class_name'
]
]);
Сколько не пытался через флешку у меня всё какой то косяк был
<?= $form->field($model, 'rememberMe')->checkbox(['class' => 'test']) ?>