Re: [symfony-users] Best practice to allow for Action reuse?

2011-01-03 Thread Svetoslav Shterev
On Sun, 2011-01-02 at 23:47 -0500, Eric B wrote: > > Thanks for the tip. That's kind of what I was looking for. Ideally, > the great thing about Struts2 is that you can also put the action to > take based on the result in a config file, which completely separates > the workflow from the action.

Re: [symfony-users] Best practice to allow for Action reuse?

2011-01-02 Thread Eric B
On Sun, Jan 2, 2011 at 9:08 AM, Svetoslav Shterev wrote: > On Sat, 2011-01-01 at 23:36 -0800, benze wrote: > > Hi, > > > > I'm trying to figure out the best way to reuse an action, and am > > having difficulty figuring that out. Specifically because my action > > seems to be tied to the response

Re: [symfony-users] Best practice to allow for Action reuse?

2011-01-02 Thread Gareth McCumskey
Quite simply, an action can interrogate where it was called from, what post/get data exists as well as what session data exists. All of this can be used to help determine what function an action should perform. Once you can determine inside an action what you need to do you can also load different

Re: [symfony-users] Best practice to allow for Action reuse?

2011-01-02 Thread Svetoslav Shterev
On Sat, 2011-01-01 at 23:36 -0800, benze wrote: > Hi, > > I'm trying to figure out the best way to reuse an action, and am > having difficulty figuring that out. Specifically because my action > seems to be tied to the response. > > For instance, I have a delete action that I want to call from w

[symfony-users] Best practice to allow for Action reuse?

2011-01-02 Thread benze
Hi, I'm trying to figure out the best way to reuse an action, and am having difficulty figuring that out. Specifically because my action seems to be tied to the response. For instance, I have a delete action that I want to call from within several different web pages, however, depending on which