Re: [Catalyst] forward not working correctly ?

2015-02-02 Thread John Napiorkowski
FWIW I highly recommend not using ->forward at all.  ->detach has some sort of reasonable use but all the other 'skip around the code' methods almost always end up with a huge mess.   That stuff was semi useful prior to chained actions and Moose in controllers (for reusable roles).  At this poin

Re: [Catalyst] forward not working correctly ?

2015-02-01 Thread Luca Ferrari
CIao, On Thu, Jan 29, 2015 at 6:28 PM, QE :: Felix Ostmann wrote: > Hi, > > i guess you are confused by all the different type of redirects, forwards, > visits ... > > After your explanation i think you want a HTTP-Redirect > (http://www.catalystframework.org/calendar/2007/13) / redirect_to_actio

Re: [Catalyst] forward not working correctly ?

2015-01-29 Thread Octavian Rasnita
From: "Luca Ferrari" Hi all, I'm surely missing something in my action: sub edit : Local Form { my ( $self, $c, $id ) = @_; my $form = $self->formbuilder(); ... if ( $is_form_ok ){ ... $c->forward( 'list' ); } else { ... } } The result is that the same page

Re: [Catalyst] forward not working correctly ?

2015-01-29 Thread QE :: Felix Ostmann
Hi, i guess you are confused by all the different type of redirects, forwards, visits ... After your explanation i think you want a HTTP-Redirect ( http://www.catalystframework.org/calendar/2007/13) / redirect_to_action Please read about visit, go, forward and detach in the documentation: ​(​ ht