Last active
December 19, 2015 23:59
-
-
Save AD7six/6038914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
public function index($id = null) { | |
if (!$id) { | |
$this->redirect(array('#' => 'showthis')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> curl -I http://cakephp.dev/example | |
HTTP/1.1 302 Found | |
Server: nginx/1.4.1 | |
Date: Fri, 19 Jul 2013 12:54:34 GMT | |
Content-Type: text/html; charset=UTF-8 | |
Connection: keep-alive | |
Set-Cookie: CAKEPHP=qjo8qgcbl640o43usu714rqql6; expires=Fri, 19-Jul-2013 16:54:34 GMT; Max-Age=14400; path=/; HttpOnly | |
Location: http://cakephp.dev/example#showthis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment