Re: [Catalyst] internal redirect

2007-04-11 Thread Roberto Henríquez
Adeola Awoyemi escribió: Hi all, Is there a way to do an internal redirect in Catalyst? In my application I'm generating images on the fly and want to redirect to the image if creation succeeds. For instance: $image = Imager->new() $image->read( file => $src_file ); $new_img = $

RE: [Catalyst] internal redirect

2007-04-11 Thread Eduard Giménez
> I tried using "$c->response->redirect( $new_filepath )" but > that issues a 302 "Temporarily Moved" status. But what I > actually want is a way to do the redirect outside of the > response chain. > > I hope this is clear?! Maybe $c->forward( $new_filepath )? Eduard Giménez CAPSiDE Systems

Re: [Catalyst] internal redirect

2007-04-11 Thread Adeola Awoyemi
On 11 Apr 2007, at 15:55, Eduard Giménez wrote: Maybe $c->forward( $new_filepath )? I don't think this would work as you can only forward to actions or components. Adeola -- Creative Developer - Digital Craftsmen Ltd Exmouth House, 3 Pine Street London, EC1R 0JH t: +44 20 7183 1410 f: +4

Re: [Catalyst] internal redirect

2007-04-11 Thread Roberto Henríquez
Adeola Awoyemi escribió: Hi all, Is there a way to do an internal redirect in Catalyst? In my application I'm generating images on the fly and want to redirect to the image if creation succeeds. For instance: $image = Imager->new() $image->read( file => $src_file ); $new_img = $

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote: > if ( $new_img->write( file => $new_filename ) ) { > > I tried using "$c->response->redirect( $new_filepath )" but that > issues a 302 "Temporarily Moved" status. I suspect your web document root is not the root of the file sy

Re: [Catalyst] internal redirect

2007-04-11 Thread Renaud Drousies
>> Maybe $c->forward( $new_filepath )? > > I don't think this would work as you can only forward to actions or > components. > I think Catalyst::Plugin::SubRequest would be interesting to look at. Regards, Renaud Drousies ___ List: Catalyst@lists.raw

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
On Wed, Apr 11, 2007 at 08:36:52AM -0700, Bill Moseley wrote: > On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote: > > if ( $new_img->write( file => $new_filename ) ) { > > > > I tried using "$c->response->redirect( $new_filepath )" but that > > issues a 302 "Temporarily Moved"

Re: [Catalyst] internal redirect

2007-04-11 Thread Adeola Awoyemi
On 11 Apr 2007, at 16:43, Bill Moseley wrote: On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote: if ( $new_img->write( file => $new_filename ) ) { I tried using "$c->response->redirect( $new_filepath )" but that issues a 302 "Temporarily Moved" status. I suspect your web do