Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
c55b4c5b
Commit
c55b4c5b
authored
Jun 17, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comments in Route\Parser.
parent
253e529c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
parser.php
system/route/parser.php
+4
-15
No files found.
system/route/parser.php
View file @
c55b4c5b
...
...
@@ -11,25 +11,14 @@ class Parser {
*/
public
static
function
parameters
(
$uri
,
$route
)
{
// --------------------------------------------------------------
// Split the request URI into segments.
// --------------------------------------------------------------
$uri_segments
=
explode
(
'/'
,
$uri
);
$parameters
=
array
();
// --------------------------------------------------------------
// Split the route URI into segments.
// --------------------------------------------------------------
$uri_segments
=
explode
(
'/'
,
$uri
);
$route_segments
=
explode
(
'/'
,
$route
);
// --------------------------------------------------------------
// Initialize the array of parameters.
// --------------------------------------------------------------
$parameters
=
array
();
// --------------------------------------------------------------
// Extract all of the parameters out of the URI.
//
// Any segment wrapped in parentheses is considered a parameter.
// Extract all of the parameters out of the URI. Any route
// segment wrapped in parentheses is considered a parameter.
// --------------------------------------------------------------
for
(
$i
=
0
;
$i
<
count
(
$route_segments
);
$i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment