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
01e11e37
Commit
01e11e37
authored
Jun 01, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added overview section [skip ci]
parent
ba77b2d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
README.md
docs/guide/README.md
+1
-0
structure-overview.md
docs/guide/structure-overview.md
+26
-0
No files found.
docs/guide/README.md
View file @
01e11e37
...
@@ -30,6 +30,7 @@ Getting Started
...
@@ -30,6 +30,7 @@ Getting Started
Application Structure
Application Structure
---------------------
---------------------
*
[
Overview
](
structure-overview.md
)
*
[
Entry Scripts
](
structure-entry-scripts.md
)
*
[
Entry Scripts
](
structure-entry-scripts.md
)
*
[
Applications
](
structure-applications.md
)
*
[
Applications
](
structure-applications.md
)
*
[
Application Components
](
structure-application-components.md
)
*
[
Application Components
](
structure-application-components.md
)
...
...
docs/guide/structure-overview.md
0 → 100644
View file @
01e11e37
Overview
========
Yii applications are organized according to the
[
model-view-controller (MVC)
](
http://wikipedia.org/wiki/Model-view-controller
)
design pattern.
[
Models
](
structure-models.md
)
represent data, business logic and rules;
[
views
](
structure-views.md
)
are output representation of models; and
[
controllers
](
structure-controllers.md
)
take input and convert
it to commands for
[
models
](
structure-models.md
)
and
[
views
](
structure-views.md
)
.
Besides MVC, Yii applications also have the following entities:
*
[
entry scripts
](
structure-entry-scripts.md
)
: they are PHP scripts that are directly accessible by end users.
They are responsible for starting a request handling cycle.
*
[
applications
](
structure-applications.md
)
: they are globally accessible objects that manage application components
and coordinate them to fulfill requests.
*
[
application components
](
structure-application-components.md
)
: they are objects registered with applications and
provide various services for fulfilling requests.
*
[
modules
](
structure-modules.md
)
: they are self-contained packages that contain complete MVC by themselves.
An application can be organized in terms of multiple modules.
*
[
filters
](
structure-filters.md
)
: they represent code that need to be invoked before and after the actual
handling of each request by controllers.
*
[
widgets
](
structure-widgets.md
)
: they are objects that can be embedded in
[
views
](
structure-views.md
)
. They
may contain controller logic and can be reused in different views.
The following diagram shows the static structure of an application:
![
Static Structure of Application
](
images/application-structure.png
)
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