| 2 | | require '../config/php/config.php'; |
|---|
| 3 | | require '../lib/stubbles.php'; |
|---|
| 4 | | stubClassLoader::load('net.stubbles.websites.memphis.stubMemphisProcessor', |
|---|
| 5 | | 'net.stubbles.websites.stubPageXJConfFactory', |
|---|
| 6 | | 'net.stubbles.ipo.request.stubWebRequest', |
|---|
| 7 | | 'net.stubbles.ipo.session.stubPHPSession', |
|---|
| 8 | | 'net.stubbles.ipo.response.stubResponse' |
|---|
| | 2 | /** |
|---|
| | 3 | * Example for the Memphis processor |
|---|
| | 4 | * |
|---|
| | 5 | * @author Frank Kleine <mikey@stubbles.net> |
|---|
| | 6 | * @author Stephan Schmidt <schst@stubbles.net> |
|---|
| | 7 | * @link http://www.stubbles.net/wiki/Docs/MVC |
|---|
| | 8 | */ |
|---|
| | 9 | |
|---|
| | 10 | /** |
|---|
| | 11 | * Load Stubbles |
|---|
| | 12 | */ |
|---|
| | 13 | require '../bootstrap-stubbles.php'; |
|---|
| | 14 | |
|---|
| | 15 | stubClassLoader::load('net.stubbles.websites.stubFrontController', |
|---|
| | 16 | 'net.stubbles.ipo.interceptors.stubInterceptorXJConfInitializer', |
|---|
| | 17 | 'net.stubbles.websites.processors.stubProcessorResolverXJConfFactory', |
|---|
| | 18 | 'net.stubbles.util.stubRegistryXJConfInitializer' |
|---|
| 13 | | { |
|---|
| 14 | | $request = new stubWebRequest(); |
|---|
| 15 | | $session = new stubPHPSession($request, 'stubSID'); |
|---|
| 16 | | $pageFactory = new stubPageXJConfFactory(stubXJConfLoader::getInstance()); |
|---|
| 17 | | $processor = new stubMemphisProcessor($request, $session, new stubBaseResponse(), $pageFactory); |
|---|
| 18 | | $processor->process()->getResponse()->send(); |
|---|
| | 24 | { |
|---|
| | 25 | $controller = new stubFrontController(new stubRegistryXJConfInitializer(), |
|---|
| | 26 | new stubInterceptorXJConfInitializer(), |
|---|
| | 27 | new stubProcessorResolverXJConfFactory()); |
|---|
| | 28 | $controller->process(); |
|---|