Skip to content

Commit

Permalink
documentation corrections [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
vchenin committed Jun 1, 2015
1 parent 6a1ec34 commit d285c6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ we suggest using [our logo](http://www.yiiframework.com/logo/) on your title sli
**In projects**

If you are using Yii 2 as part of an OpenSource project, a way to acknowledge it is to
[use a special badge](URL https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat) in your README:
[use a special badge](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat) in your README:

![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/input-file-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ use yii\widgets\ActiveForm;

<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>

<?= $form->field($model, 'imageFiles')->fileInput(['multiple' => true]) ?>
<?= $form->field($model, 'imageFiles[]')->fileInput(['multiple' => true, 'accept' => 'image/*']) ?>

<button>Submit</button>

Expand Down
10 changes: 5 additions & 5 deletions docs/guide/structure-applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ you may list its ID as an element in this property.

Each component listed in this property may be specified in one of the following formats:

- an application component ID as specified via [components](#components).
- a module ID as specified via [modules](#modules).
- a class name.
- a configuration array.
- an application component ID as specified via [components](#components),
- a module ID as specified via [modules](#modules),
- a class name,
- a configuration array,
- an anonymous function that creates and returns a component.

For example:
Expand Down Expand Up @@ -215,7 +215,7 @@ Each application component is specified as a key-value pair in the array. The ke
while the value represents the component class name or [configuration](concept-configurations.md).

You can register any component with an application, and the component can later be accessed globally
using the expression `\Yii::$app->ComponentID`.
using the expression `\Yii::$app->componentID`.

Please read the [Application Components](structure-application-components.md) section for details.

Expand Down

0 comments on commit d285c6e

Please sign in to comment.