summaryrefslogtreecommitdiffstats
path: root/system/core/Router.php
AgeCommit message (Collapse)AuthorFilesLines
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.
2012-04-26Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into patchTimothy Warren1-1/+4
2012-04-26Fixed issue #122 - ruri_string() in subdirs.Phil Sturgeon1-1/+4
2012-04-23Use tabs to separate class propertiesTimothy Warren1-5/+5
2012-04-19Additional formatting fixesTimothy Warren1-5/+11
2012-04-19Normalize comments in core filesTimothy Warren1-1/+0
2012-03-26Some style adjustments and fixed comments in Router and Output classesAndrey Andreev1-17/+15
2012-03-09Bumped CodeIgniter's PHP requirement to 5.2.4.Phil Sturgeon1-1/+1
Yes I know PHP 5.4 just came out, and yes I know PHP 5.3 has lovely features, but there are plenty of corporate systems running on CodeIgniter and PHP 5.3 still is not widely supported enough. CodeIgniter is great for distributed applications, and this is the highest we can reasonably go without breaking support. PHP 5.3 will most likely happen in another year or so. Fingers crossed on that one anyway...