summaryrefslogtreecommitdiffstats
path: root/system/core/Router.php
AgeCommit message (Collapse)AuthorFilesLines
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- Remove PHP version from license notices - Bump year number in copyright notices - Recommend PHP 5.4 or newer to be used - Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version Related: #3450
2014-12-05Further changes related to issue #47, PR #3323Andrey Andreev1-5/+8
- Removed a test that was created specifically for the 'convert programmatic characters to entities' feature. - Changed filter_uri() to accept by reference and to not return anything as its only purpose now is to trigger a show_error() call. - Added changelog messages and updated the upgrade instructions.
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-04-15#3005Andrey Andreev1-2/+1
2014-03-30Fix #2976Andrey Andreev1-0/+4
2014-03-25Simplify callback routesAndrey Andreev1-29/+0
There's no need for all that Reflection magic, it's only slowing down the whole process
2014-02-24Don't use globalsAndrey Andreev1-4/+2
- Use load_class() to get objects during bootstrap process. - Change load_class() to accept a class constructor parameter instead of previously unused class name prefix. - Change CI_Router::__construct() to accept as a parameter.
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-01-18Fix 2 Router-related errorsAndrey Andreev1-1/+1
2014-01-16URI Routing overhaulAndrey Andreev1-122/+118
- Allow multiple levels of controller directories (supersedes PRs #390, #2439) - Add support for per-directory 'defaul_controller' and '404_override' (resolves issue #2611; supersedes PR #939) - Fixed a bug where default_controller was called instead of triggering 404 if the current route is inside a directory - Removed a few calls from CI_Router to CI_URI that made a necessity for otherwise internal CI_URI methods to be public: - Removed CI_URI::_fetch_uri_string() and moved its logic into CI_URI::__construct() - Removed CI_URI::_remove_url_suffix, CI_URI::_explode_segments() and moved their logic into CI_URI::_set_uri_string() - Removed CI_URI::_reindex_segments() altogether ( doesn't need further manipulation, while is public anyway and can be properly (and more effectively) replaced on the spot)
2014-01-15CI_URI changes related to the 'permitted_uri_chars' settingAndrey Andreev1-3/+3
- Initialize and cache the value in the class constructor instead of searching for it every time - Removed the preg_quote() call from _filter_uri() to allow more fine-tuning from configuration - Renamed _filter_uri() to filter_uri() - it was public anyway and using it cannot break anything Related: issue #2799
2014-01-10Finally get rid of the CI_Router::_set_overrides() callsAndrey Andreev1-32/+23
2013-11-11Polish changes from PR #2712Andrey Andreev1-4/+2
2013-11-05Fix HTTP Verb Routing RulesFatih Kalifa1-18/+14
Fix code style, removed (:any) rule in http verb to avoid confusion, and add proposed documentation and changelog
2013-10-31Enable HTTP Verb in RoutingFatih Kalifa1-1/+32
Using array for HTTP Verb e.g: $route['(:any)']['POST'] = "controller/post_method"; $route['path']['GET'] = "controller/path_get_method"; $route['path']['(:any)'] = "controller/path_any_method"; Using (:any) or not will make same result e.g: $route['path']['(:any)'] == $route['path'] So it won't break existing route
2013-08-06Various typos and tabs adjustmentsvlakoff1-2/+2
2013-07-22Change class filenames to UcfirstAndrey Andreev1-5/+3
2013-07-19Router improvementsAndrey Andreev1-18/+38
- Make dashes-to-underscores URI segment replacement configurable via ['translate_uri_dashes']. - Make _set_routing() protected and move the call to the class constructor. - Remove redudant calls to set_class() and set_method(). - Clean-up/optimize the routes loading procedure. (fixes issue #2503)
2013-04-04Fix #2380 and deprecate CI_Router::fetch_*() methodsAndrey Andreev1-7/+10
2013-01-29Replace is_file() with the faster file_exists()Andrey Andreev1-4/+5
(where it makes sense) Also: - Implemented caching of configuration arrays for smileys, foreign characters and doctypes. - Implemented cascading-style loading of configuration files (except for library configs, DB and constants.php).
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-1/+1
As suggested in issue #2134 & PR #2149
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-12-07Fix issue #2061Andrey Andreev1-9/+9
2012-11-08Another router fix for the dumbest usage of callbacks everAndrey Andreev1-1/+1
2012-11-08Revert 96ea52894aea85b86d75f59fee35f90676735060Andrey Andreev1-6/+6
2012-11-08Change route type checks prioritiesAndrey Andreev1-6/+6
2012-11-04Fix #98Andrey Andreev1-1/+1
2012-11-02Fix a directory/404_override bug and some routing-related optimizationsAndrey Andreev1-55/+21
2012-11-02Router-related optimizationsAndrey Andreev1-7/+0
An improved version of changes suggesed in PR #1352, and more specifically: https://github.com/sourcejedi/CodeIgniter/commit/8f7d2dfe42bd8543981c0f295e391e433d82fd42 https://github.com/sourcejedi/CodeIgniter/commit/d2de251c092d9d822fc4898e3681b64e9c74dd2a (thanks again @sourcejedi)
2012-11-01Allow use of dashes in controller/method URI segmentsAndrey Andreev1-1/+9
Supersedes PR #642
2012-11-01Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)Andrey Andreev1-1/+2
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
2012-10-31Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into developJonatas Miguel1-33/+36
2012-10-30Fix issue #658 (:any wildcard matching slashes)Andrey Andreev1-1/+1
2012-10-27[ci skip] Router class DocBlock improvementsAndrey Andreev1-32/+35
2012-10-23users' default values are now respected in callback routesJonatas Miguel1-0/+15
2012-09-27corrected a few more style problemsJonatas Miguel1-2/+2
2012-09-27made some corrections to the codeJonatas Miguel1-6/+3
2012-08-07Changed spaces to tabs where necessary.Jonatas Miguel1-59/+59
2012-08-06Updated documentationJonatas Miguel1-1/+1
2012-08-06Corrected code style to be inline with project conventions.Jonatas Miguel1-7/+9
2012-08-06Fixed a bug when detecting if the user used a callback.Jonatas Miguel1-1/+1
2012-08-06New optional routing system, v3Jonatas Miguel1-33/+57
2012-08-06revert changes to routing system - part 1Jonatas Miguel1-34/+2
2012-08-01Added possibility of using callbacks.Jonatas Miguel1-6/+25
2012-07-20allow for routes that can be processed with php, ex: ↵Jonatas Miguel1-1/+14
$route['([^/]+)/([^/]+)(/:any)?'] = 'php:"$1" . "/do" . ucfirst("$2") . "$3"';
2012-06-12Change file permissions for system/core/*.php and system/database/DB.php so ↵Andrey Andreev1-0/+0
that they don't differ from the rest
2012-06-04Revert/optimize some changes from ed944a3c70a0bad158cd5a6ca5ce1f2e717aff5dAndrey Andreev1-3/+3
2012-06-02Replaced `==` with `===` and `!=` with `!==` in /system/coreAlex Bilbie1-4/+4
2012-05-17Cleanup the core classesAndrey Andreev1-14/+11
2012-05-02Reverted rui_string change.Phil Sturgeon1-4/+1
This had knock-on effects as can be seen in #1306. Issue #122 has been reopend until it is fixed properly.