Re: [Catalyst] Read and Display from i/o file

2007-04-11 Thread Ian Docherty
Will First you need to put the data you read into an array (for example @rows) then put it on the stash The main problem is that your template [% FOREACH row IN row %] should be [% FOREACH row IN rows %] I think this is your main problem. Regards Ian C. Docherty (icydee) Will Smith

[Catalyst] internal redirect

2007-04-11 Thread Adeola Awoyemi
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 = $image-copy-scale( xpixels =

Re: [Catalyst] streaming output to view in real time

2007-04-11 Thread Jimmy Cooksey
Ok, I'm requesting a design sanity check :-) What I'd like to do is have a view come up with a form, and a div for my streaming output. The form is used to execute an external serverside program. Data fields in the form are basically just command line arguments for the program. The form

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 Engineer

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:

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 system. --

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 status. I

Re: [Catalyst] streaming output to view in real time

2007-04-11 Thread Perrin Harkins
On 4/10/07, Jimmy Cooksey [EMAIL PROTECTED] wrote: I'm looking for a way to redirect STDOUT from an external application directly into my website, updating in real time. Randal Schwartz wrote a good example of how to do this with a forked process and some kind of shared data store:

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 document

[Catalyst] work with second database

2007-04-11 Thread Michael Higgins
Hello, All -- As I'm still trying to get my head around the Catalyst way of doing things, I'm hoping can someone give me a hint: I have an application set up to report on a database. So far, so good. Now, I've got another database I need to query. How do I best integrate access to it into my

Re: [Catalyst] work with second database

2007-04-11 Thread J. Shirley
On 4/11/07, Michael Higgins [EMAIL PROTECTED] wrote: Hello, All -- As I'm still trying to get my head around the Catalyst way of doing things, I'm hoping can someone give me a hint: I have an application set up to report on a database. So far, so good. Now, I've got another database I need to

Re: [Catalyst] work with second database

2007-04-11 Thread Fernan Aguero
+[ Michael Higgins [EMAIL PROTECTED] (11.Apr.2007 16:08): | | Hello, All -- | | As I'm still trying to get my head around the Catalyst way of doing things, | I'm hoping can someone give me a hint: | | I have an application set up to report on a database. So far, so good. | | Now, I've got