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
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
PSDI Army
yii2
Commits
c328b851
Commit
c328b851
authored
Apr 06, 2014
by
Larry Ullman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix "Web"
Because we’re using capital “Web” not “web” (my previous mistake).
parent
8390f2d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mvc.md
docs/guide/mvc.md
+2
-2
No files found.
docs/guide/mvc.md
View file @
c328b851
...
@@ -2,7 +2,7 @@ MVC Overview
...
@@ -2,7 +2,7 @@ MVC Overview
============
============
Yii implements the model-view-controller (MVC) design pattern, which is
Yii implements the model-view-controller (MVC) design pattern, which is
widely adopted in
w
eb and other application programming. MVC aims to separate business logic from
widely adopted in
W
eb and other application programming. MVC aims to separate business logic from
user interface considerations, allowing developers to more easily change one component of an application without affecting, or even touching, another.
user interface considerations, allowing developers to more easily change one component of an application without affecting, or even touching, another.
In MVC, the
*model*
represents both the
In MVC, the
*model*
represents both the
...
@@ -27,7 +27,7 @@ The following diagram shows a typical workflow of a Yii application handling a
...
@@ -27,7 +27,7 @@ The following diagram shows a typical workflow of a Yii application handling a
![
Typical workflow of a Yii application
](
images/flow.png
)
![
Typical workflow of a Yii application
](
images/flow.png
)
1.
A user makes a request of the URL
`http://www.example.com/index.php?r=post/show&id=1`
.
1.
A user makes a request of the URL
`http://www.example.com/index.php?r=post/show&id=1`
.
The
w
eb server handles the request by executing the bootstrap script
`index.php`
.
The
W
eb server handles the request by executing the bootstrap script
`index.php`
.
2.
The bootstrap script creates an
[
[yii\web\Application|Application
]
] instance and runs it.
2.
The bootstrap script creates an
[
[yii\web\Application|Application
]
] instance and runs it.
3.
The Application instance obtains the detailed user request information from an application component named
`request`
.
3.
The Application instance obtains the detailed user request information from an application component named
`request`
.
4.
The application determines which
[
controller
](
controller.md
)
and which action of that controller was requested.
4.
The application determines which
[
controller
](
controller.md
)
and which action of that controller was requested.
...
...
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