I am using Symfony 1.4 with Propel as ORM. I Have created a login system for my frontend page, where user can login and edit there account details.The page is set with Permission ="user" and Group ="user". But on loging in with a user which doesnot belong to this group, redirects to the symfonys default page(showing user dont have credentials to view this page). can these pages be customized and set our own custom messages..and how can we set custom error pages??
i kullanmış kodu,
if($this->getContext()->getUser()->hasCredential("user"))
{
$user_name=$this->getUser()->getGuardUser()->getUsername();
$this->name=$user_name;
}
else
{
$this->forward("userlogin", "error");
}
ama bu en iyi yoldur bilmiyorum ..