Hi, I hope it may be: in your action you can set as follows: $this->getRequest()->setParameter('isError',$errorMessage);
check is error or not in your related remplate: $sf_request->hasError('isError'); and print error message: $sf_request->getError('isError'); On 6/21/07, slinky66 <[EMAIL PROTECTED]> wrote: > > Hi! > > Inside my actions class, I have a variable isError that gets set with > an error message if there was an error. I want to read this variable > inside my corresponding template so I can display an error message to > the user. I'm trying to do it this way: > > //Inside actions class > > if(isset($errorMessage)){ > > $this->getRequest()->setParameter('isError',$errorMessage); > $this->forward('shoppingCart','purchaseConfirm'); > } > > //Inside template purchaseConfirmSuccess > ???? Not sure how to get value from isError that was set in actions > class > > > Am I on the right track here or do I need to do something else? > > Thanks > > > > > -- Birchandra Sanasam Web Developer & Analyst # +91 9810 194978 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---