yii-user module ,create Login and Registration in same page

i used yii-user module to manage user and admin on my site,

i try to create login page with registration form in same page,

i’ve try :

Login and Register forms in the same page

link : http://www.yiiframework.com/forum/index.php/topic/43267-login-and-register-in-same-page/

when i use:


$this->renderPartial('application.views.user.register', array('newUserModel'=>$newUserModel));

on my login view, it’s get some error with :


Fatal error: Call to a member function getErrors() on a non-object in D:\Ampps\www\yii\framework\web\helpers\CHtml.php on line 2002

i’ve try to fix it, but it contains same result as other ways. :(

How can i fix this?

thanks for advices