Redirect would be appropriate if you wish to send them an HTTP redirect response header.<br><br><div class="gmail_quote">On Mon, Jul 9, 2012 at 5:28 PM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi:<br>
<br>
        I'm writing a controller that can allow authorized user to download files (XML and PNG) previously saved in $this->getTempDirectory().  I am wondering if there a way already setup in Midas to do this or should I roll my own?<br>


<br>
        I looked at the module/api/controllers/components/ApiComponent.php download code and see calls to $this->redirect(...) which calls $this->_redirect(...) but I couldn't find where _redirect() is defined to try and understand if I should use it or not.<br>


<br>
        All tips are welcome (:<br>
<br>
thanks,<br>
Mona<br>
<br>
<br>
*********************************************<br>
    Mona Wong<br>
    Web & iPad Application Developer<br>
    San Diego Supercomputer Center<br>
<br>
    "Forgive everyone everything."<br>
                                -- Regina Brett<br>
*********************************************<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Zach Mullen<br>R & D Engineer<br>Kitware Inc.<br>919-869-8858<br>