From: <sh...@ru...> - 2004-11-04 15:17:26
|
RK, You might simply want to do a $model->pkit_redirect (for an HTTP redirect) rather than a pkit_internal_redirect. Although Boris' suggestion is probably more flexible. shimon. On Thu, Nov 04, 2004 at 02:57:12PM +0100, Boris Zentner wrote: > Hi Veeresh, > > Am 04.11.2004 um 14:06 schrieb R K: > > >Hi Boris, > > > >I have following section in my Config.xml: > > > ><PAGE id="NetReperio/searchcmd.sh" content_type="application/x-sh"/> > > > >The id is getting execution out of Model method named 'search' in > >where I have placed a small internal redirect to > >'NetReperio/searchcmd.sh'. The HTML code responsible to execute this > >is: > > > ><form name="cmd" action="/netreperio/NetReperio/search" method="post"> > > > >Now whenever the browser gets the file it tries to save it as > >'search'. Is there any method by which this behavior can be changed, > >so that the browser gets file name as 'searchcmd.sh' ? > > > >FYI this file is generated dynamically. > > > > Im not really sure If I understand what you try to archive. You might > have asked for > > $model->apr->headers_out->set( 'Content-Disposition', 'attachment; > filename="searchcmd.sh"' ); > > you might also look at pkit_send, if your generated content does not > use a view. > > ( untested ) > > Have a nice day. > > >Please comment. > > > >Thanks a lot again. > > > >-RK > >R K wrote: > > > >>Hi Boris, > >> > >>Thanks for the efforts, I really really appreciate them, yes the > >>settings did work out, I forgot to read the fine print of Section > >>attribute. Thanks a lot again. PageKit with TT2 is one cool > >>combination, simply put amazing! > >> > >>Thanks again. > >> > >>-RK > > > > > > > -- > Boris > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users |