[Koha-devel] RFC: add optional HTTP status argument to output_html_with_http_headers

Jesse pianohacker at gmail.com
Mon May 19 21:05:25 CEST 2008


That sounds like a very good idea. It might be best to have a seperate
function like output_error, though, because otherwise each script that
raises a 404 will have to deal with it in the template somehow (and most
don't; for instance, opac-detail gives some odd error in C4::XSLT).

For instance:

output_error "404", sprintf("Biblio #%d was not found", $biblionumber);

This could have its own template, along the lines of auth.tmpl but with the
menus, etc.

Just putting 404 in the HTTP status line would be good, but it'd be nice to
give some feedback to the user.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20080519/99ad792d/attachment-0002.htm>


More information about the Koha-devel mailing list