Commit Graph

69 Commits

Author SHA1 Message Date
Simon Sessingø f5a32cf520 [BUGFIX] Fixed router paths. 2015-10-27 10:35:57 +01:00
Simon Sessingø 1843ea0594 [BUGFIX] Fixed routes always matching /show/{id} when other routes are added. 2015-10-27 10:29:40 +01:00
Simon Sessingø 2a66350883 [BUGFIX] Fixed missing "/" in getRoute on some rare occasions. 2015-10-24 23:24:06 +02:00
Simon Sessingø 20fc067765 [FEATURE] If no parameters are specified in the route, getRoute will now
add the parameters provided to the method instead.
2015-10-24 23:18:16 +02:00
Simon Sessingø bdb5b2dead [BUGFIX] Fixed missing / in beginning of url in getRoute when route does not exist. 2015-10-22 00:17:49 +02:00
Simon Sessingø 1ba05b923c [FEATURE] Csrf token
- Added functionality to CsrfToken class.
- Added header support to Request class.
- Added option to set BaseCsrfVerifier class in RouterBase and
  SimpleRouter.
2015-10-21 18:12:53 +02:00
Simon Sessingø 58e4eb85bb [BUGFIX] Fixed method not allowed exception.
- Method request type are now checked on all classes in the RouterBase class.
2015-10-21 10:14:21 +02:00
Simon Sessingø 626a3b2f6a [TASK] Changes
- Added support for alias on RouterRoute.
- Added typo in resource (renamed class from Ressource to Resource).
- Added optional settings parameter in most of the methods in the
  SimpleRouter class.
2015-10-21 00:27:47 +02:00
Simon Sessingø 2524428926 [BUGFIX] Bugfixing
- Urls now always returns ending slash when using getRoute().
- Fixed common errors with routing.
- Simplified getRoute method.
2015-10-20 23:54:05 +02:00
Simon Sessingø c1a6c63dc7 [FEATURE/BUGFIX] Improvements
- Added match method to match specific regular expression.
- GetRoute now returns provided controller and method if no match is found.
- Bugfixes and other minor improvements.
2015-10-18 23:18:58 +02:00
Simon Sessingø b3b362a9e6 [BUGFIX] Improvements
- Fixed errors with getRoute method.
- Added Response and Request classes.
- Added CSRF stuff.
- Cleanup and bugfixes.
2015-10-18 17:36:06 +02:00
Simon Sessingø 5c81da7b77 [BUGFIX] Bugfixes
- Made sure that urls are always presented in the correct order
- Ignored RouterGroup in controllerUrlMap
2015-10-11 11:35:56 +02:00
Simon Sessingø 3c3dcdf8df [FEATURE] Added getIdentifier method to RouterBase
- Fixed getter for getLoadedRoute
2015-10-11 10:43:35 +02:00
Simon Sessingø 2ff88f9ed4 [BUGFIX] Bugfixes 2015-10-07 00:14:59 +02:00
Simon Sessingø cbe1af0ab9 [FEATURE] Added ressource controller type 2015-10-06 19:46:07 +02:00
Simon Sessingø 6354c3c766 [TASK] Bugfixes and improvements
- Most routes now works along with getRoute() method.
2015-10-06 16:08:42 +02:00
Simon Sessingø 1c765476b5 [BUGFIXES] Bugfixes 2015-09-25 00:00:29 +02:00
Simon Sessingø 67c3479a3e [FEATURE]
- Added RouterController class.
- Added Router::controller functionality to SimpleRouter class.
- Bugfixes and optimisations.
2015-09-22 13:39:17 +02:00
Simon Sessingø 85470bbbd7 [TASK] Updated 2015-09-21 19:40:14 +02:00