Development

HowtoAddHTTPAuthSupport (diff)

You must first sign up to be able to contribute.

Changes between Version 2 and Version 3 of HowtoAddHTTPAuthSupport

Show
Ignore:
Author:
trivoallan (IP: 82.234.123.217)
Timestamp:
10/20/06 18:36:00 (11 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoAddHTTPAuthSupport

    v2 v3  
    4343== discussion == 
    4444 
    45 I think the return of sfView::HEADERS_ONLY is better than using sfView::NONE. Also, just set "has_layout: off" in the view.yml for the specific function. 
    46 Another question: aren't there functions to send HTTP headers via symfony? Something like sfContext::getRequest()->setHeader('Foo: 1'); - I think this would fit more with the conventions than using php's header()-function. 
     45 * I think the return of sfView::HEADERS_ONLY is better than using sfView::NONE. Also, just set "has_layout: off" in the view.yml for the specific function. 
     46 * Another question: aren't there functions to send HTTP headers via symfony? Something like sfContext::getRequest()->setHeader('Foo: 1'); - I think this would fit more with the conventions than using php's header()-function. 
     47 * You should never trust the value of HTTP_REFERER as it is easily forgeable