summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use studlycase, fixing route controller class nameArnold Daniels2016-03-101-2/+2
|
* Fixup Router::fnmatchArnold Daniels2016-03-102-4/+4
| | | | Fix add trailing \ for Jasny function
* Updated to jasny/php-function v2Arnold Daniels2016-03-103-4/+4
|
* Use stripos to find header for Request::getOutputFormat()Arnold Daniels2016-01-241-1/+1
|
* Fixed Request::outputErrorListAsHTML()Arnold Daniels2016-01-241-2/+2
|
* Added return for POST case in getInput()Zlatan Menkovic2015-09-111-1/+1
|
* FixupArnold Daniels2015-09-111-5/+6
|
* Fixes for outputting text and html errorsArnold Daniels2015-09-101-41/+46
| | | | Set http status code Output an array with a single error as single string instead of list
* Added Request::getClientIp() methodArnold Daniels2015-09-021-0/+30
|
* Removed list of http status codesArnold Daniels2015-08-101-33/+0
|
* Removed error handler from routerArnold Daniels2015-08-102-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 definedArnold Daniels2015-08-101-18/+62
|
* Fixed request method overrideArnold Daniels2015-03-101-1/+1
|
* Merge pull request #8 from moesjarraf/masterArnold Daniels2015-03-042-2/+2
|\ | | | | Revert Router and fix for Controller
| * Revert Router and fix for Controllermoesjarraf2015-03-042-2/+2
|/
* Fixed routing with use of base pathroot2014-12-011-1/+1
|
* Fixed passing HTTP code from controllerArnold Daniels2014-11-031-6/+6
|
* Added 409 and 429 response functions to ControllerArnold Daniels2014-10-291-5/+35
| | | | Controller::conflict() gives a 409 response Controller::tooManyRequests() gives a 429 response
* Fixed issues with getting input formatArnold Daniels2014-10-292-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 Daniels2014-10-111-0/+18
|
* Fix Router::badRequestArnold Daniels2014-10-111-2/+5
|
* Request::outputErrorJson: only compat error if scalarArnold Daniels2014-10-101-2/+2
|
* FixupArnold Daniels2014-10-091-0/+2
|
* Don't specify a default route.Arnold Daniels2014-10-091-5/+1
| | | Less magic: if no routes are defined, nothing matches.
* Don't handle invalid "$9+" / "$9abc" stringsArnold Daniels2014-10-091-2/+6
|
* Remove 405 status from RouterArnold Daniels2014-10-091-13/+6
|
* Fixed Router class_exists issueArnold Daniels2014-10-091-1/+0
|
* Fixed `Router::allowOrigin()`Arnold Daniels2014-10-094-25/+80
| | | | | Added `Controller::is*Method()` Added `Controller->flash()` method Fixed 404/405 response for Router
* Fix Router::outputError()Arnold Daniels2014-10-081-2/+2
|
* Pretty print output HTML and Text errorsArnold Daniels2014-10-081-3/+30
|
* Pretty print errors for HTML and TextArnold Daniels2014-10-081-8/+84
|
* Added `Request::supportInputType()` and `Request::acceptOrigin`Arnold Daniels2014-10-083-159/+462
| | | | | Router no longer exits Added Success response functions to Controller Added response checks to Controller
* Update Controller.phpArnold Daniels2014-09-081-1/+1
| | | badRequest was calling router->forbidden
* Small fixesArnold Daniels2014-08-075-35/+86
|
* Set composer branch aliasArnold Daniels2014-08-051-0/+5
|
* Fixed composer issueArnold Daniels2014-08-051-3/+3
|
* Use Jasny\MVC namespaceArnold Daniels2014-08-057-13/+11
| | | | Use PSR-4
* Massive update - breaking BCArnold Daniels2014-08-057-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(), etcArnold Daniels2014-06-192-20/+45
|
* Merge branch 'master' of github.com:jasny/mvcArnold Daniels2014-05-300-0/+0
|\
| * Put Twig view in View namespace.Arnold Daniels2014-05-302-8/+22
| | | | | | | | | | | | What was I thinking with the underscore!?! Breaks BC!!!
* | Put Twig view in View namespace.Arnold Daniels2014-05-302-9/+23
|/ | | | What was I thinking with the underscore!?! Breaks BC!!!
* Decode the URL got from $_SERVER['REQUEST_URI']Arnold Daniels2014-05-301-1/+1
|
* Default message for 405Arnold Daniels2014-05-221-1/+3
|
* Alternative way for advanced routingArnold Daniels2014-05-221-5/+6
| | | Include/exclude methods
* Return with Method Not Allowed is route path matches but method doesn'tArnold Daniels2014-05-221-13/+25
|
* Router::redirect() can't be staticArnold Daniels2014-05-222-2/+13
|
* Fix Router::handleErrors()Arnold Daniels2014-05-221-2/+2
|
* Added Router::getUrlPart()Arnold Daniels2014-05-221-0/+12
|
* Fix: multiple spaces between route method and pathArnold Daniels2014-05-221-1/+1
|
* Add the ability to set the output format in the RouterArnold Daniels2014-05-221-9/+46
|
* Added Controller::isPost()Arnold Daniels2014-05-221-0/+10
|
* Added Router::outputError()Arnold Daniels2014-05-222-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 routesArnold Daniels2014-05-211-14/+54
|
* Added Controller::getFlash() and Controller:clearFlash()Arnold Daniels2014-05-211-4/+18
|
* Added support for 403 forbidden to Router and ControllerArnold Daniels2014-05-212-0/+30
|
* Added methods to controller to get information about the requestArnold Daniels2014-05-211-4/+44
|
* Fixed critical error with unknown class Route in Router.Arnold Daniels2014-04-291-1/+1
|
* Added Router::addRoutes()Arnold Daniels2014-04-231-12/+61
| | | + some minor improvements in Router
* Don't bind null in RouterArnold Daniels2014-04-011-0/+2
|
* Renamed View\Twig to View_TwigArnold Daniels2014-01-232-8/+36
| | | Added expose function to view
* Allow setting the default view.Arnold Daniels2014-01-233-38/+69
| | | Corrected broken way of last commit.
* Add current_route to viewArnold Daniels2014-01-223-12/+47
| | | Added method Controller::localReferrer()
* Parse variables in parameters as part of a stringArnold Daniels2013-12-231-5/+15
|
* Fixed Controller::redirect()Arnold Daniels2013-12-051-1/+1
|
* Retern View\Twig::render()Arnold Daniels2013-12-051-1/+1
|
* Pass Router to ControllerArnold Daniels2013-11-282-8/+45
| | | | Make Controller::redirect, notfound and badrequest work without a router
* Fixed calling Jasny\View::load($file), uses view based on file extensionArnold Daniels2013-11-282-15/+19
| | | | | Call init without parameters in Jasny/View/Twig. Can't set current_route, since Router is no longer static
* Made Router not staticArnold Daniels2013-11-281-93/+90
|
* docblock fix View/Twig::init()Arnold Daniels2013-11-281-0/+1
|
* Fixed bug routing with GET paramsArnold Daniels2013-11-141-1/+1
|
* Use Router statically in View/TwigArnold Daniels2013-09-232-3/+14
| | | | CamelCase both controller and action
* Make sure the routes are initialised before useArnold Daniels2013-09-131-3/+5
|
* Don't use Router::$base property directlyArnold Daniels2013-09-131-4/+4
|
* Make Router staticArnold Daniels2013-09-131-72/+69
|
* Fixed Router::fnmatch for route '/**'Arnold Daniels2013-09-131-2/+2
| | | Fixed $error for errot handler
* Added Router::get()Arnold Daniels2013-08-271-16/+53
| | | | Fixed routing to / and to 30?/40?/500
* FixupArnold Daniels2013-08-221-33/+35
|
* Added error handling to routerArnold Daniels2013-08-221-70/+129
| | | Fixed standard route
* Fixup routerArnold Daniels2013-08-101-1/+1
|
* Fixup routerArnold Daniels2013-08-093-21/+32
| | | | Fixup View
* Added View base classesArnold Daniels2013-08-094-106/+139
| | | | Added Twig view
* First commitArnold Daniels2013-08-097-0/+655