Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use studlycase, fixing route controller class name | Arnold Daniels | 2016-03-10 | 1 | -2/+2 | |
| | ||||||
* | Fixup Router::fnmatch | Arnold Daniels | 2016-03-10 | 2 | -4/+4 | |
| | | | | Fix add trailing \ for Jasny function | |||||
* | Updated to jasny/php-function v2 | Arnold Daniels | 2016-03-10 | 3 | -4/+4 | |
| | ||||||
* | Use stripos to find header for Request::getOutputFormat() | Arnold Daniels | 2016-01-24 | 1 | -1/+1 | |
| | ||||||
* | Fixed Request::outputErrorListAsHTML() | Arnold Daniels | 2016-01-24 | 1 | -2/+2 | |
| | ||||||
* | Added return for POST case in getInput() | Zlatan Menkovic | 2015-09-11 | 1 | -1/+1 | |
| | ||||||
* | Fixup | Arnold Daniels | 2015-09-11 | 1 | -5/+6 | |
| | ||||||
* | Fixes for outputting text and html errors | Arnold Daniels | 2015-09-10 | 1 | -41/+46 | |
| | | | | Set http status code Output an array with a single error as single string instead of list | |||||
* | Added Request::getClientIp() method | Arnold Daniels | 2015-09-02 | 1 | -0/+30 | |
| | ||||||
* | Removed list of http status codes | Arnold Daniels | 2015-08-10 | 1 | -33/+0 | |
| | ||||||
* | Removed error handler from router | Arnold Daniels | 2015-08-10 | 2 | -94/+7 | |
| | | | | Removed camelcase method from router, using jasny/php_functions Use fnmatch_extended from jasny/php_functions | |||||
* | Get arguments by name if route->args isn't defined | Arnold Daniels | 2015-08-10 | 1 | -18/+62 | |
| | ||||||
* | Fixed request method override | Arnold Daniels | 2015-03-10 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #8 from moesjarraf/master | Arnold Daniels | 2015-03-04 | 2 | -2/+2 | |
|\ | | | | | Revert Router and fix for Controller | |||||
| * | Revert Router and fix for Controller | moesjarraf | 2015-03-04 | 2 | -2/+2 | |
|/ | ||||||
* | Fixed routing with use of base path | root | 2014-12-01 | 1 | -1/+1 | |
| | ||||||
* | Fixed passing HTTP code from controller | Arnold Daniels | 2014-11-03 | 1 | -6/+6 | |
| | ||||||
* | Added 409 and 429 response functions to Controller | Arnold Daniels | 2014-10-29 | 1 | -5/+35 | |
| | | | | Controller::conflict() gives a 409 response Controller::tooManyRequests() gives a 429 response | |||||
* | Fixed issues with getting input format | Arnold Daniels | 2014-10-29 | 2 | -4/+13 | |
| | | | | Sometime HTTP_CONTENT_TYPE is set instead of CONTENT_TYPE Die after routing to unsupported media type in router | |||||
* | Added outline for Request::setCachingPolicy() | Arnold Daniels | 2014-10-11 | 1 | -0/+18 | |
| | ||||||
* | Fix Router::badRequest | Arnold Daniels | 2014-10-11 | 1 | -2/+5 | |
| | ||||||
* | Request::outputErrorJson: only compat error if scalar | Arnold Daniels | 2014-10-10 | 1 | -2/+2 | |
| | ||||||
* | Fixup | Arnold Daniels | 2014-10-09 | 1 | -0/+2 | |
| | ||||||
* | Don't specify a default route. | Arnold Daniels | 2014-10-09 | 1 | -5/+1 | |
| | | | Less magic: if no routes are defined, nothing matches. | |||||
* | Don't handle invalid "$9+" / "$9abc" strings | Arnold Daniels | 2014-10-09 | 1 | -2/+6 | |
| | ||||||
* | Remove 405 status from Router | Arnold Daniels | 2014-10-09 | 1 | -13/+6 | |
| | ||||||
* | Fixed Router class_exists issue | Arnold Daniels | 2014-10-09 | 1 | -1/+0 | |
| | ||||||
* | Fixed `Router::allowOrigin()` | Arnold Daniels | 2014-10-09 | 4 | -25/+80 | |
| | | | | | Added `Controller::is*Method()` Added `Controller->flash()` method Fixed 404/405 response for Router | |||||
* | Fix Router::outputError() | Arnold Daniels | 2014-10-08 | 1 | -2/+2 | |
| | ||||||
* | Pretty print output HTML and Text errors | Arnold Daniels | 2014-10-08 | 1 | -3/+30 | |
| | ||||||
* | Pretty print errors for HTML and Text | Arnold Daniels | 2014-10-08 | 1 | -8/+84 | |
| | ||||||
* | Added `Request::supportInputType()` and `Request::acceptOrigin` | Arnold Daniels | 2014-10-08 | 3 | -159/+462 | |
| | | | | | Router no longer exits Added Success response functions to Controller Added response checks to Controller | |||||
* | Update Controller.php | Arnold Daniels | 2014-09-08 | 1 | -1/+1 | |
| | | | badRequest was calling router->forbidden | |||||
* | Small fixes | Arnold Daniels | 2014-08-07 | 5 | -35/+86 | |
| | ||||||
* | Set composer branch alias | Arnold Daniels | 2014-08-05 | 1 | -0/+5 | |
| | ||||||
* | Fixed composer issue | Arnold Daniels | 2014-08-05 | 1 | -3/+3 | |
| | ||||||
* | Use Jasny\MVC namespace | Arnold Daniels | 2014-08-05 | 7 | -13/+11 | |
| | | | | Use PSR-4 | |||||
* | Massive update - breaking BC | Arnold Daniels | 2014-08-05 | 7 | -538/+706 | |
| | | | | | | | Request class to get/set request and response info Less code in Router and Controller Flash as object. Fixes #2 Simpeler binding in Router + support for super globals in routes. Fixes #1 Twig view in namespace (instead of _) | |||||
* | Renamed methods getRequestFormat(), etc | Arnold Daniels | 2014-06-19 | 2 | -20/+45 | |
| | ||||||
* | Merge branch 'master' of github.com:jasny/mvc | Arnold Daniels | 2014-05-30 | 0 | -0/+0 | |
|\ | ||||||
| * | Put Twig view in View namespace. | Arnold Daniels | 2014-05-30 | 2 | -8/+22 | |
| | | | | | | | | | | | | What was I thinking with the underscore!?! Breaks BC!!! | |||||
* | | Put Twig view in View namespace. | Arnold Daniels | 2014-05-30 | 2 | -9/+23 | |
|/ | | | | What was I thinking with the underscore!?! Breaks BC!!! | |||||
* | Decode the URL got from $_SERVER['REQUEST_URI'] | Arnold Daniels | 2014-05-30 | 1 | -1/+1 | |
| | ||||||
* | Default message for 405 | Arnold Daniels | 2014-05-22 | 1 | -1/+3 | |
| | ||||||
* | Alternative way for advanced routing | Arnold Daniels | 2014-05-22 | 1 | -5/+6 | |
| | | | Include/exclude methods | |||||
* | Return with Method Not Allowed is route path matches but method doesn't | Arnold Daniels | 2014-05-22 | 1 | -13/+25 | |
| | ||||||
* | Router::redirect() can't be static | Arnold Daniels | 2014-05-22 | 2 | -2/+13 | |
| | ||||||
* | Fix Router::handleErrors() | Arnold Daniels | 2014-05-22 | 1 | -2/+2 | |
| | ||||||
* | Added Router::getUrlPart() | Arnold Daniels | 2014-05-22 | 1 | -0/+12 | |
| | ||||||
* | Fix: multiple spaces between route method and path | Arnold Daniels | 2014-05-22 | 1 | -1/+1 | |
| | ||||||
* | Add the ability to set the output format in the Router | Arnold Daniels | 2014-05-22 | 1 | -9/+46 | |
| | ||||||
* | Added Controller::isPost() | Arnold Daniels | 2014-05-22 | 1 | -0/+10 | |
| | ||||||
* | Added Router::outputError() | Arnold Daniels | 2014-05-22 | 2 | -73/+379 | |
| | | | | | Moved request info methods to Router Router check request format to give proper response on error Added Router::onException() | |||||
* | Added support for request method in routes | Arnold Daniels | 2014-05-21 | 1 | -14/+54 | |
| | ||||||
* | Added Controller::getFlash() and Controller:clearFlash() | Arnold Daniels | 2014-05-21 | 1 | -4/+18 | |
| | ||||||
* | Added support for 403 forbidden to Router and Controller | Arnold Daniels | 2014-05-21 | 2 | -0/+30 | |
| | ||||||
* | Added methods to controller to get information about the request | Arnold Daniels | 2014-05-21 | 1 | -4/+44 | |
| | ||||||
* | Fixed critical error with unknown class Route in Router. | Arnold Daniels | 2014-04-29 | 1 | -1/+1 | |
| | ||||||
* | Added Router::addRoutes() | Arnold Daniels | 2014-04-23 | 1 | -12/+61 | |
| | | | + some minor improvements in Router | |||||
* | Don't bind null in Router | Arnold Daniels | 2014-04-01 | 1 | -0/+2 | |
| | ||||||
* | Renamed View\Twig to View_Twig | Arnold Daniels | 2014-01-23 | 2 | -8/+36 | |
| | | | Added expose function to view | |||||
* | Allow setting the default view. | Arnold Daniels | 2014-01-23 | 3 | -38/+69 | |
| | | | Corrected broken way of last commit. | |||||
* | Add current_route to view | Arnold Daniels | 2014-01-22 | 3 | -12/+47 | |
| | | | Added method Controller::localReferrer() | |||||
* | Parse variables in parameters as part of a string | Arnold Daniels | 2013-12-23 | 1 | -5/+15 | |
| | ||||||
* | Fixed Controller::redirect() | Arnold Daniels | 2013-12-05 | 1 | -1/+1 | |
| | ||||||
* | Retern View\Twig::render() | Arnold Daniels | 2013-12-05 | 1 | -1/+1 | |
| | ||||||
* | Pass Router to Controller | Arnold Daniels | 2013-11-28 | 2 | -8/+45 | |
| | | | | Make Controller::redirect, notfound and badrequest work without a router | |||||
* | Fixed calling Jasny\View::load($file), uses view based on file extension | Arnold Daniels | 2013-11-28 | 2 | -15/+19 | |
| | | | | | Call init without parameters in Jasny/View/Twig. Can't set current_route, since Router is no longer static | |||||
* | Made Router not static | Arnold Daniels | 2013-11-28 | 1 | -93/+90 | |
| | ||||||
* | docblock fix View/Twig::init() | Arnold Daniels | 2013-11-28 | 1 | -0/+1 | |
| | ||||||
* | Fixed bug routing with GET params | Arnold Daniels | 2013-11-14 | 1 | -1/+1 | |
| | ||||||
* | Use Router statically in View/Twig | Arnold Daniels | 2013-09-23 | 2 | -3/+14 | |
| | | | | CamelCase both controller and action | |||||
* | Make sure the routes are initialised before use | Arnold Daniels | 2013-09-13 | 1 | -3/+5 | |
| | ||||||
* | Don't use Router::$base property directly | Arnold Daniels | 2013-09-13 | 1 | -4/+4 | |
| | ||||||
* | Make Router static | Arnold Daniels | 2013-09-13 | 1 | -72/+69 | |
| | ||||||
* | Fixed Router::fnmatch for route '/**' | Arnold Daniels | 2013-09-13 | 1 | -2/+2 | |
| | | | Fixed $error for errot handler | |||||
* | Added Router::get() | Arnold Daniels | 2013-08-27 | 1 | -16/+53 | |
| | | | | Fixed routing to / and to 30?/40?/500 | |||||
* | Fixup | Arnold Daniels | 2013-08-22 | 1 | -33/+35 | |
| | ||||||
* | Added error handling to router | Arnold Daniels | 2013-08-22 | 1 | -70/+129 | |
| | | | Fixed standard route | |||||
* | Fixup router | Arnold Daniels | 2013-08-10 | 1 | -1/+1 | |
| | ||||||
* | Fixup router | Arnold Daniels | 2013-08-09 | 3 | -21/+32 | |
| | | | | Fixup View | |||||
* | Added View base classes | Arnold Daniels | 2013-08-09 | 4 | -106/+139 | |
| | | | | Added Twig view | |||||
* | First commit | Arnold Daniels | 2013-08-09 | 7 | -0/+655 | |