summaryrefslogtreecommitdiffstats
path: root/system/core/Router.php
AgeCommit message (Collapse)AuthorFilesLines
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev1-1/+1
Fix user guide url
2019-01-02Merge pull request #5662 from jim-parry/copyright2019Instructor, BCIT1-3/+3
Update copyright date to 2019
2018-01-09[ci skip] Merge pull request #5376 from jim-parry/copyright-updateAndrey Andreev1-2/+2
Annual copyright update Conflicts resolved: system/libraries/Cache/drivers/Cache_apcu.php
2017-01-03Update copyright data to 2017Master Yoda1-2/+2
2016-01-11[ci skip] Update ellislab.com links to https tooAndrey Andreev1-1/+1
2016-01-11[ci skip] Update codeigniter.com links to httpsAndrey Andreev1-2/+2
2016-01-11[ci skip] Bump year to 2016Andrey Andreev1-2/+2
2015-12-07Merge pull request #4291 from b-kaxa/fix-phpdocAndrey Andreev1-0/+1
[ci skip] phpdoc adjustments in CI_Router and CI_URI
2015-09-14Fix #4109Andrey Andreev1-20/+22
2015-08-14Fix #4052Andrey Andreev1-20/+0
The bug actually had two instances: - Callback routes with literal matches and HTTP verbs has never worked - The reported issue in #4052, which is a regression introduced in 3.0.1 with abc299b3a234eb7da1b7e3d257b7eba2da649219 Removed the literal matches logic altogether to avoid similar issues in the future and reduce code complexity. The same logic is performed with the regular expressions logic.
2015-08-05Fix #4027Andrey Andreev1-8/+12
2015-07-24Fixed typosCalvin Tam1-1/+1
2015-07-17Fix #3752Andrey Andreev1-21/+22
2015-07-06fix typo in router classftwbzhao1-1/+1
2015-04-08[ci skip] Fix comment typosAndrey Andreev1-1/+1
https://github.com/bcit-ci/CodeIgniter/pull/3748#issuecomment-90925762
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-1/+1
'Class Loaded' type of messages flood log files when log_threshold is set to 2 (debug). They're now logged as 'info' level. This is manually applying PR #1528, which was created to do the same thing, but became outdated.
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