Skip to content

Instantly share code, notes, and snippets.

@AD7six
Last active December 19, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AD7six/6038914 to your computer and use it in GitHub Desktop.
Save AD7six/6038914 to your computer and use it in GitHub Desktop.
<?php
...
public function index($id = null) {
if (!$id) {
$this->redirect(array('#' => 'showthis'));
}
> 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