├── tests ├── mvc │ ├── index.php │ ├── content │ │ └── images │ │ │ ├── mvc.png │ │ │ └── php.png │ ├── filters │ │ ├── EmptyFilter.php │ │ ├── NoResultErrorFilter.php │ │ ├── ExecutingWorldFilter.php │ │ ├── ErrorFilter.php │ │ └── ExecutedWorldFilter.php │ ├── views │ │ ├── shared │ │ │ ├── _empty.php │ │ │ ├── footer.php │ │ │ ├── error.php │ │ │ ├── _lite.php │ │ │ ├── header.php │ │ │ ├── _default.php │ │ │ └── _parent.php │ │ ├── home │ │ │ ├── prog.php │ │ │ ├── hello.php │ │ │ └── index.php │ │ └── account │ │ │ └── login.php │ ├── models │ │ ├── HomePage.php │ │ └── Login.php │ └── controllers │ │ ├── AccountController.php │ │ ├── FilterController.php │ │ ├── OutputCacheController.php │ │ └── HomeController.php ├── models │ ├── ModelA.php │ ├── ModelB.php │ └── ModelC.php ├── autoload.php ├── HttpRequest.php ├── HttpContextInfo.php ├── RouteCollectionTest.php ├── HttpResponse.php ├── UrlHelperTest.php ├── PathUtilityTest.php ├── FilterTest.php ├── HttpContext.php └── ArrayToObjectTest.php ├── .gitignore ├── .vscode └── tasks.json ├── composer.json ├── LICENSE └── src ├── Info.php ├── UrlParameter.php ├── HttpAntiForgeryException.php ├── ActionNameValidationException.php ├── EventArgs.php ├── HttpRequest.php ├── CrossSiteScriptingValidation.php ├── ActionResult.php ├── FileCacheProviderConfig.php ├── RouteParsingException.php ├── HttpContext.php ├── EmptyResult.php ├── Loader.php ├── HttpContextInfo.php ├── SelectListGroup.php ├── RouteOptions.php ├── ModelStateEntry.php ├── ViewNotFoundException.php ├── ActionFilter.php ├── ExceptionResult.php ├── ActionExecutingContext.php ├── HttpRequestValidationException.php ├── RouteSegment.php ├── ModelDataAnnotation.php ├── Filter.php ├── OutputCacheLocation.php ├── index.php ├── ContentResult.php ├── HttpStatusCodeResult.php ├── ErrorHandlerEventArgs.php ├── ValidateAntiForgeryToken.php ├── UrlHelper.php ├── SelectListItem.php ├── HttpResponse.php ├── RedirectResult.php ├── JsonResult.php ├── ViewResult.php ├── FileResult.php ├── ExceptionContext.php ├── CacheProvider.php ├── ActionExecutedContext.php ├── RedirectToActionResult.php ├── IdleCacheProvider.php ├── Cache.php ├── ViewContext.php ├── HttpSessionProvider.php ├── PathUtility.php ├── View.php ├── RouteProvider.php ├── HttpContextBase.php └── ModelState.php /tests/mvc/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /composer.lock 3 | /docs 4 | /output 5 | /cache 6 | /tests/mvc/cache 7 | -------------------------------------------------------------------------------- /tests/mvc/content/images/mvc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-mvc-project/php-mvc/HEAD/tests/mvc/content/images/mvc.png -------------------------------------------------------------------------------- /tests/mvc/content/images/php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-mvc-project/php-mvc/HEAD/tests/mvc/content/images/php.png -------------------------------------------------------------------------------- /tests/mvc/filters/EmptyFilter.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /tests/models/ModelA.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
This is another page of the most wonderful site in the world!
-------------------------------------------------------------------------------- /tests/models/ModelB.php: -------------------------------------------------------------------------------- 1 | addPsr4("PhpMvcTest\\", __DIR__ . '/mvc', true); 7 | $classLoader->register(); -------------------------------------------------------------------------------- /tests/mvc/views/home/hello.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 |This is the main page of the most wonderful site in the world!
16 | -------------------------------------------------------------------------------- /tests/mvc/views/shared/error.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |