Created
November 11, 2014 01:03
-
-
Save seagoj/ce890fdc3492a995ee49 to your computer and use it in GitHub Desktop.
Autoloading
This file contains hidden or 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
<!-- /index.php --> | |
<html> | |
<script> | |
$.ajax({ | |
url: '/secure/User.php', | |
... | |
}); | |
</script> | |
</html> |
This file contains hidden or 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 namespace Devtools; | |
// /vendor/Devtools/Response.php | |
class Response | |
{ | |
... | |
} |
This file contains hidden or 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 | |
// /secure/User.php | |
// required so Devtools\Response will be loaded | |
require_once 'autoloader.php'; | |
class User extends Devtools\Response | |
{ | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment