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
24583f18
Commit
24583f18
authored
Oct 14, 2014
by
Nikola Basic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos [skip ci]
parent
b734a80e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
concept-configurations.md
docs/guide/concept-configurations.md
+3
-3
No files found.
docs/guide/concept-configurations.md
View file @
24583f18
...
...
@@ -130,7 +130,7 @@ an [entry script](structure-entry-scripts.md), where the class name is already g
(
new
yii\web\Application
(
$config
))
->
run
();
```
For m
ore details about configuring the
`components`
property of an application can be found
M
ore details about configuring the
`components`
property of an application can be found
in the
[
Applications
](
structure-applications.md
)
section and the
[
Service Locator
](
concept-service-locator.md
)
section.
...
...
@@ -153,7 +153,7 @@ echo Menu::widget([
]);
```
The above code creates a
`Menu`
widget and initializes its
`activeItems`
property to be false.
The above code creates a
`Menu`
widget and initializes its
`activ
at
eItems`
property to be false.
The
`items`
property is also configured with menu items to be displayed.
Note that because the class name is already given, the configuration array should NOT have the
`class`
key.
...
...
@@ -215,7 +215,7 @@ $config = require('path/to/web.php');
## Default Configurations <a name="default-configurations"></a>
The
[
[Yii::createObject()
]
] method is implemented based on a
[
dependency injection container
](
concept-di-container.md
)
.
It allows you to specify a set of the so-called
*default configurations*
which will be applied to A
NY
instances of
It allows you to specify a set of the so-called
*default configurations*
which will be applied to A
LL
instances of
the specified classes when they are being created using
[
[Yii::createObject()
]
]. The default configurations
can be specified by calling
`Yii::$container->set()`
in the
[
bootstrapping
](
runtime-bootstrapping.md
)
code.
...
...
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