Development

HowtoAddHTTPAuthSupport (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of HowtoAddHTTPAuthSupport

Show
Ignore:
Author:
pminnieur (IP: 195.227.123.98)
Timestamp:
09/05/06 18:11:02 (11 years ago)
Comment:

Added Discussion at the end

Legend:

Unmodified
Added
Removed
Modified
  • HowtoAddHTTPAuthSupport

    v1 v2  
    3939 
    4040And you're done :p 
     41 
     42 
     43== discussion == 
     44 
     45I 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. 
     46Another 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.