i came up with a very elementary solution:
i just used this on my action
$this->err = "you have an error";
sfView::ERROR
then displayed the following error on my indexError.php;
thanks for your replies... i'm currently reading the links that you gave me
bert, thanks.
On 3/20/07, Bert Van den Brande <[EMAIL PROTECTED]> wrote:
>
>
> I think you will find these links handy :
>
>
> http://www.symfony-project.com/book/trunk/06-Inside-the-Controller-Layer#Validation%20and%20Error-Handling%20Methods
> http://www.symfony-project.com/book/trunk/10-Forms#Form%20Validation
>
> http://www.symfony-project.com/book/trunk/10-Forms#Standard%20Symfony%20Validators
>
> On 3/20/07, Eric Bangug <[EMAIL PROTECTED]> wrote:
> > actually im just using the login as an example... how to handle error on
> > different type of program?
> >
> > how about handling an error due to wrong input? For example, i have,
> lets
> > say 3 types of error on my form, how can i display the error message
> > corresponding to the error.??
> >
> > TIA
> >
> >
> > On 3/19/07, Alexander Deruwe <[EMAIL PROTECTED]> wrote:
> > >
> > > On 19 Mar 2007, at 12:50, Eric Bangug wrote:
> > > > Hi all,
> > > >
> > > > i just want to ask a simple question.
> > > >
> > > > If i have a login page and wants to display different types of
> > > > errors depending on users input
> > > >
> > > > ie.
> > > > * invalid password
> > > > * invalid username
> > > > * blah blah...
> > > >
> > > > how can i do it? it definitely not work on sfView::ERROR
> > >
> > > You should look into validators.
> > > But aside from that, I wouldn't give too many information on the kind
> > > of problem on the login page. A user will know his details, and try
> > > again anyway; an unauthorised person shouldn't really know wether or
> > > not the username he's using actually exists or not.
> > >
> > > Cheers,
> > >
> > >
> > > Alexander
> > >
> > >
> > >
> >
> >
> > >
> >
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---