Created
May 23, 2012 12:28
-
-
Save mikeemoo/2774997 to your computer and use it in GitHub Desktop.
App dev with wordpress
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 | |
$kernel = new AppKernel('dev', true); | |
$kernel->loadClassCache(); | |
$response = $kernel->handle(Request::createFromGlobals()); | |
if ($response->getStatusCode() !== 404) | |
{ | |
$response->send(); | |
} | |
else | |
{ | |
// load wordpress here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment