Comparing
#7 with
#8
Content
[...]
if(isset($_POST['User']))
{
$form->attributes=$_POST['User'];
if($form->validate() && $form->login()){
$url = $this->controller->createUrl('user/index');
$this->controller->redirect($url);
}
}
$this->render('UserLogin',array('form'=>$form));
}
}
```[...]