Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
a5e575ab
Commit
a5e575ab
authored
Feb 20, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2487
parent
8a048e99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
url.md
docs/guide/url.md
+2
-2
No files found.
docs/guide/url.md
View file @
a5e575ab
...
@@ -276,8 +276,8 @@ class CarUrlRule extends UrlRule
...
@@ -276,8 +276,8 @@ class CarUrlRule extends UrlRule
if
(
preg_match
(
'%^(\w+)(/(\w+))?$%'
,
$pathInfo
,
$matches
))
{
if
(
preg_match
(
'%^(\w+)(/(\w+))?$%'
,
$pathInfo
,
$matches
))
{
// check $matches[1] and $matches[3] to see
// check $matches[1] and $matches[3] to see
// if they match a manufacturer and a model in the database
// if they match a manufacturer and a model in the database
// If so, set $
_GET['manufacturer'] and/or $_GET
['model']
// If so, set $
params['manufacturer'] and/or $params
['model']
// and return
'car/index'
// and return
['car/index', $params]
}
}
return
false
;
// this rule does not apply
return
false
;
// this rule does not apply
}
}
...
...
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