On Mar 7, 5:32 pm, "Christopher E. Franklin, Sr."
<[EMAIL PROTECTED]> wrote:
> Hrmm, you had a good idea but, I am not figuring out how to implement
> this.
I do it almost exactly as I described.
I sat there for an hour yesterday just thinking about it. My
> problem is that I have a simple array with the path and name of the
> file. The file name and paths change dynamically but with flash and
> redirect, I don't see a way to pass the data to a new page. is $this->data
> global? I mean if $this->data contains my array, when the page
>
> gets redirected, it goes bye-bye, yeah?
>
> Here is the array I am trying to pass:
>
> $data = array('AdminTool' => array('success' = true, 'filepath' => '/
> whatever/here/', 'filename' => 'blah_blah_2007-03-06_12:14:03.zip'));
>
redirect to /whatever/here/blah_blah_2007-03-06_12:14:03.zip
OR redirect to some controller method that uses the passed parameters
or the session to find the right file to serve.
> I get this array from functions in the model that collect the
> information for me and zips it. The model passes the array with where
> the zip is located and the name of the zip file. From the controller
> I could just set the zipinfo variable with the array and access it
> that way but, the problem comes in where, if I want to display HTML
> like success here is what info was collected, and once that view
> loads, have the browser automatically bring up the download box for
> the zip file.
You'd need to edit your zip generating function (are you using the zip
component) such that it also generates a list of files it found, and
returns that on success (for example).
>
> This, for me, is more about a "can it be done or not" and to implement
> it whether it would be useful or not. It just means that my knowledge
> will grow.
Sure it can ;).
HTH,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---