Then put this snippet into a partial and render it into the normal view. Then return $this->renderPartial() in the action.
Daniel On Dec 17, 2009, at 7:13 PM, tirengarfio wrote: > Thanks Daniel, > > im writing a message inbox, next to each message i would like to put a > link in the style "Already read it", when clicked it will change the > color of the background of the message. > > For that im using link_to_remote() in order to change the color of the > background of <div id="message">(throuhg a javascript code), and to > execute the action message/changeEstate (i have a boolean field called > "Status" in Message class) that will change the status from 0 to 1. > > The point: with link_to_remote i MUST create the > changeEstateSuccess.php file with the code that will replace the > content of <div id="message">. > > I know i can use partial_elements and it will be easy, but im > curious..:S > > > Javi > > > > > > > > On Dec 17, 6:39 pm, Daniel Lohse <[email protected]> wrote: >> Why would you want that? You can always return sfView::NONE in the action >> and be done with it. >> >> Daniel >> >> On Dec 17, 2009, at 6:35 PM, tirengarfio wrote: >> >>> Hi, >> >>> is there any way to execute actions without defining its corresponding >>> template? >> >>> You know, if you dont define the corresponding template file you get >>> an error... >> >>> Bye >> >>> Javi >> >>> -- >> >>> 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 >>> athttp://groups.google.com/group/symfony-users?hl=en. > > -- > > 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. > > -- 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.
