Rander Partial In View Form Action Not Changed

Hello i am using a leanmodel Popup window for login

When i add the login code


$model = new LoginForm;


$this->renderPartial('login' , array('model'=>$model));




When i see form in inspect Element the action should be this action="site/login" method ="post"

but it is showing wrong action action="openedController/OpenAction" not showing that is required

any solution for that …?

You have to assign the correct route (controllerid/actionid) to the formaction in your view.