Skip to content
Permalink
Browse files

Refactored Controller::header() to use the CakeResponse object, depre…

…cated Controller::header() and Controller::httpCodes()
  • Loading branch information...
lorenzo committed Aug 1, 2010
1 parent 9d104fe commit 60f504a4708a43ca5cb578cd280f3958f77619f3
Showing with 4 additions and 3 deletions.
  1. +4 −3 cake/libs/controller/controller.php
@@ -557,6 +557,7 @@ public function shutdownProcess() {
*
* @return mixed Associative array of the HTTP codes as keys, and the message
* strings as values, or null of the given $code does not exist.
* @deprecated
*/
public function httpCodes($code = null) {
return $this->response->httpCodes($code);
@@ -670,14 +671,14 @@ public function redirect($url, $status = null, $exit = true) {
}
/**
* Convenience and object wrapper method for header(). Useful when doing tests and
* asserting that particular headers have been set.
* Convenience and object wrapper method for CakeResponse::header().
*
* @param string $status The header message that is being set.
* @return void
* @deprecated
*/
public function header($status) {
header($status);
$this->response->header($status);
}
/**

0 comments on commit 60f504a

Please sign in to comment.
You can’t perform that action at this time.