This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.0 » redirect errorHandler
redirect errorHandler [message #91002] Thu, 07 January 2010 22:02 Go to next message
ramsesdm  is currently offline ramsesdm
Messages: 12
Registered: August 2009
Location: Mexico
Junior Member
Hi everyone. I have a template load_itemsSuccess, it has a table witj items, one of the table colunm is a delete button who execute executeDelete_item.
I make a validateDelete_item because a need to chek that no other element depends of the element to delete. but i need that if the validateDelete_item returns false the page to load should be load_itemsSuccess and not delete_itemSuccess.
What can I do?
Re: redirect errorHandler [message #91023 is a reply to message #91002 ] Fri, 08 January 2010 10:45 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Sorry, I didn't understand that at all. I sense that you are using javascript here? I think you will need to be more precise, and provide more details, to get someone to answer.


Remember Palestine
Re: redirect errorHandler [message #91064 is a reply to message #91023 ] Fri, 08 January 2010 16:36 Go to previous messageGo to next message
ramsesdm  is currently offline ramsesdm
Messages: 12
Registered: August 2009
Location: Mexico
Junior Member
Ok,let me try again. If I make a validation validateDelete_item for executeDelete_item if validateDelete_item returns false symfony automatica redirect to Delete_itemSucces and I want that the validation fails the page to show is load_itemsSuccess.
Re: redirect errorHandler [message #102839 is a reply to message #91002 ] Wed, 21 July 2010 06:33 Go to previous message
tejasparmarc  is currently offline tejasparmarc
Messages: 6
Registered: July 2010
Junior Member
Hi ramses,

OK i am not getting exact what you are trying to say..... But if validateDelete_item return false; then

you want to load load_items actions right !!!!!!!! then write below code into your action file


public function validateDelete_item()
{
return false;
}

public function handleErrorDelete_item()
{
$this->forward('your module name','load_items');
}
Previous Topic:Routing with default values exposes two URLs.
Next Topic:create database
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software