* * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Da\User\Widget; use Da\User\Form\LoginForm; use Yii; use yii\base\Widget; class LoginWidget extends Widget { public $validate = true; public function run() { return $this->render( '/widgets/login', [ 'model' => Yii::createObject(LoginForm::class), ] ); } }