Commit b5792ba9 authored by Shakarim Sapa's avatar Shakarim Sapa

- Проверяем виджеты

parent e4e63799
......@@ -19,9 +19,13 @@ class LoginWidget extends Widget
* This method is called by {@link CBaseController::endWidget}.
*/
public function run()
{
$formLoginPopup = $this->formLoginPopup;
if ($this->modelLogin!==null)
{
$modelLogin = new LoginForm();
$formLoginPopup = new \common\components\BaseForm('/common/modules/users/forms/LoginPopupForm', $modelLogin);
}
return $this->render('LoginWidget', ['formLoginPopup' => $formLoginPopup->out]);
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment