Hrmm, you had a good idea but, I am not figuring out how to implement
this.  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'));

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.

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.

On Mar 6, 12:50 pm, "Christopher E. Franklin, Sr."
<[EMAIL PROTECTED]> wrote:
> AH!  Good stuff!  Didn't think about that.  Thank you for the reply.
>
> On Mar 6, 12:17 pm, "AD7six" <[EMAIL PROTECTED]> wrote:
>
> > On Mar 6, 8:38 pm, "Christopher E. Franklin, Sr."
>
> > <[EMAIL PROTECTED]> wrote:
> > > This isn't really a cake question I guess...  but I cannot find the
> > > answer and this group has a bunch of smart cookies.
>
> > > How do I get the browser to prompt the user to download a file AFTER
> > > HTML has been rendered?
>
> > Render a view with a meta redirect to the url that is (or will serve)
> > the file. The 10s way to do it is to use the controller flash method.
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to