diff options
author | Michael Francis <edude03@gmail.com> | 2011-05-28 13:28:16 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-05-28 13:28:16 -0400 |
commit | 2389d66da849798f8d4ec5f10e3b07c11da49185 (patch) | |
tree | e22556d12982395b469a23420c662662e3e064cc /webroot/index.php | |
download | otakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz |
Initial Commit
Diffstat (limited to 'webroot/index.php')
-rw-r--r-- | webroot/index.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/webroot/index.php b/webroot/index.php new file mode 100644 index 0000000..4b8e981 --- /dev/null +++ b/webroot/index.php @@ -0,0 +1,43 @@ +<?php +/** + * Lithium: the most rad php framework + * + * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) + * @license http://opensource.org/licenses/bsd-license.php The BSD License + */ + +/** + * Welcome to Lithium! This front-controller file is the gateway to your application. It is + * responsible for intercepting requests, and handing them off to the `Dispatcher` for processing. + * + * @see lithium\action\Dispatcher +*/ + +/** + * If you're sharing a single Lithium core install or other libraries among multiple + * applications, you may need to manually set things like `LITHIUM_LIBRARY_PATH`. You can do that in + * `config/bootstrap.php`, which is loaded below: + */ +require dirname(__DIR__) . '/config/bootstrap.php'; + +/** + * The following will instantiate a new `Request` object and pass it off to the `Dispatcher` class. + * By default, the `Request` will automatically aggregate all the server / environment settings, URL + * and query string parameters, request content (i.e. POST or PUT data), and HTTP method and header + * information. + * + * The `Request` is then used by the `Dispatcher` (in conjunction with the `Router`) to determine + * the correct `Controller` object to dispatch to, and the correct response type to render. The + * response information is then encapsulated in a `Response` object, which is returned from the + * controller to the `Dispatcher`, and finally echoed below. Echoing a `Response` object causes its + * headers to be written, and its response body to be written in a buffer loop. + * + * @see lithium\action\Request + * @see lithium\action\Response + * @see lithium\action\Dispatcher + * @see lithium\net\http\Router + * @see lithium\action\Controller + */ +echo lithium\action\Dispatcher::run(new lithium\action\Request()); + +?>
\ No newline at end of file |