Signin page:
<form action="/phalcon/signin/validate" method="post">
<input type="text" id="user_name" name="user_name">
<input type="password" id="password" name="password">
<input type="submit" value="Signin">
</form>
validateAction in signin controler
public function validateAction()
{
$user_name = $this->request->getPost("user_name", "string", null);
$password = $this->request->getPost("password", "string", null);
if ($this->validateLoginn())
{
$this->view->disable();
$this->response->redirect('welcome');
}
else
{
/*
Here I need to forward POST data to indexAction of signin controler
*/
$this->view->disable();
$this->response->redirect('signin')->sendHeaders();
}
}
jagg