hi all…
in yii1 we easily set focus to a field,
but in yii2, where we can find it?
i tried many place but not work.
here in yii1:
<?php
$form = $this->beginWidget('CActiveForm', array(
'id' => 'post-form',
'enableClientValidation' => TRUE,
'clientOptions' => array(
'validateOnSubmit' => TRUE,
'validateOnChange' => TRUE,
),
'focus' => array($model, 'postID'),
));
?>
thank you for your help.
thank you for all yii developers