Commit graph

72 commits

Author SHA1 Message Date
the_undefined
ee94d5662c Added persist feature to routing, allows namedArgs to be auto-populated for reverse routing based on current request
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6704 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 20:57:23 +00:00
the_undefined
e46425f759 Fixed bad test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6696 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 11:25:03 +00:00
nate
8756f0d471 Adding test case for generating full-base absolute URLs, disproves and closes #4470
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6694 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 06:58:14 +00:00
the_undefined
5c0b72db85 Added support for controlling namedArg behavior on routes level, fixes #4451
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6686 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 23:14:49 +00:00
the_undefined
4b19d4c38d Added support for final characters in multi param route elements
Fixed issue with reverse routing and falsely escaped route regex

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6647 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 18:26:20 +00:00
mariano.iglesias
4b25239298 Adding router test case for URL generation with prefixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6635 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-05 14:21:33 +00:00
the_undefined
7a769f68ca Restricted named route element to contain no special chars other then '_'
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6559 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 15:19:46 +00:00
nate
24ea731e7f Making parsed parameters always show up at the beginning of 'pass', closes #4299
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6517 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 16:14:51 +00:00
mariano.iglesias
33c0fec53a Resetting route prior to test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6510 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-06 22:30:38 +00:00
mariano.iglesias
c689a95a43 Adding more tests for router regarding paging routes and named parameters
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6509 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-06 21:47:54 +00:00
nate
12466ebe43 Making sure default extension is always set when Router::parseExtensions() is used
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6507 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-03 23:56:18 +00:00
the_undefined
0b4e8e63ac Added support for multiple route parameters per path element
Fixed bug with pass param order
Added / updated router tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6498 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 15:57:25 +00:00
the_undefined
394322f35d Added pass feature to Router::connect
Implemented it for Router::mapResources

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6489 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-29 20:22:57 +00:00
nate
0d2c0c1c6c Cleanup from last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6457 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-12 14:16:13 +00:00
nate
766703f15f Fixing default route mappings, refactoring route generation, fixes #4109
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6456 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-12 14:11:33 +00:00
nate
f3355bd74b Removing all references to deprecated 'webservices' and 'bare' routes and route parameters, removing deprecated constants, updating core tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6453 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-11 06:18:41 +00:00
nate
ab1a245086 Adding option to remove application base path to Router::url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6444 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-06 20:47:48 +00:00
nate
d9691a19c8 Refactoring Router::mapResources(), adding tests for REST routing and HTTP method overrides
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6409 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-26 08:50:06 +00:00
nate
b93e5c13ea Adding tests for routes with UUID matches, closes #3973 (disproven)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6405 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-23 16:09:27 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
nate
1c9b87da4e Fixing environment detection issues in Dispatcher, adding environment tests, adding tests for embedded route regular expressions, fixes #2666
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6284 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-30 22:33:48 +00:00
gwoo
48bf9e420d updating router admin handling, closes #3697 test added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6281 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-30 19:53:21 +00:00
phpnut
394ee0c8fc "Removing debug()"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6260 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 11:15:52 +00:00
phpnut
75b5623f33 "Closes #3587, Multiple resource routes"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6257 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 10:25:42 +00:00
nate
570e71f62a Adding fix for Router named arguments where arg value contains the separator key (Ticket #3752)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6172 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-19 01:49:25 +00:00
nate
481cbf521e Adding fixes to Router::normalize() when called with empty parameter (Ticket #3734)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6152 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 15:09:05 +00:00
nate
9d58121205 Removing trailing slash from normalized URLs in AuthComponent, moving AuthComponent::_normalizeURL() to Router::normalize(), refactoring (Ticket #3042)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6145 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-13 07:03:59 +00:00
nate
4689258464 Adding REST route matching fixes (Ticket #3665)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6135 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 16:59:57 +00:00
gwoo
b1b8fcddd2 adding named to params so the proper args get passed to the action, updated tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5932 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-31 03:53:41 +00:00
nate
9b578c5bb1 Adding tests for incorrectly matched routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5931 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-30 22:41:55 +00:00
nate
1ab95d703f Adding test case to explain how route prefix matching functions (Ticket #3494)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5924 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-30 14:49:03 +00:00
nate
d913e88ef5 Adding required route matching for passed params in reverse routing, adding fix for matching on optional route parameters (Ticket #3355)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5923 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 21:33:20 +00:00
gwoo
acdeadde01 adding router test, closes #3425
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5835 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 21:51:40 +00:00
gwoo
1d46e068d3 adding test to router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5723 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 23:29:57 +00:00
gwoo
ad6a0c12c5 refactor args generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5694 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-26 09:49:01 +00:00
phpnut
643da0ab97 fixes #3260, Router generating wrong url
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5684 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-21 02:29:36 +00:00
nate
55e8592e17 Fixing passed args support in Router, refactoring helper tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5653 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 18:32:02 +00:00
gwoo
7793b4f5c0 fix for router and edit links, added tests, closes #3108
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5592 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-28 21:16:24 +00:00
nate
1326d20792 Router fix for breaking out of plugins (Ticket #3106)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5577 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-24 13:11:31 +00:00
nate
73909d0617 Adding Router fix for breaking out of admin mode (Ticket #3119)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5576 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-24 12:50:21 +00:00
nate
2ff0e4f54f Admin routing test for Ticket #3104
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5562 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-21 17:02:07 +00:00
nate
c4c3bf4ccd Adding fixes for parameter matching in reverse routing (Ticket #3099)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5557 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-20 16:02:11 +00:00
nate
b4a8d513c3 Removing benchmarking code from Router test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5555 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-20 13:12:24 +00:00
nate
bd194b51e5 Routing fixes for invalid null value matching and named argument handling (Ticket #3083, #3085, #3086, #3093). Thanks biesbjerg for all your help!
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5554 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-20 13:09:11 +00:00
nate
382235ffbf Adding Router parsing test for Ticket #3074
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5538 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 18:50:25 +00:00
nate
90567a286a Moving named argument handling into Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5535 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 16:31:50 +00:00
nate
3e7044d4b8 Implementing prefix-based routing, and transitioning configuration away from global constants
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5531 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 05:44:06 +00:00
nate
5c48a926e7 Adding model test fixture and additional Router test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5527 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 16:26:04 +00:00
nate
3b0099b877 More Router tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5526 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 14:38:28 +00:00
nate
32e61a8adf Adding Router test case for Ticket #3028
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5524 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 14:28:53 +00:00