Skip to content

Commit aa16bea

Browse files
committed
Merge branch 'master' into step-0.2
2 parents 033f77c + df139cd commit aa16bea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| 3. Виды и шаблоны | [![Build Status](https://travis-ci.org/githubjeka/yii2-tutorial.svg?branch=step-0.1)](https://travis-ci.org/githubjeka/yii2-tutorial)
1010
| 4. Формы, Active Record, Gii, Валидация. | [![Build Status](https://travis-ci.org/githubjeka/yii2-tutorial.svg?branch=step-0.2)](https://travis-ci.org/githubjeka/yii2-tutorial)
1111
| 5. Сессия. События и поведения. Сохранение данных.|
12-
| 6. Backend. GridView. Авторизация.|
12+
| 6. Backend. GridView. Авторизация.| [![Build Status](https://travis-ci.org/githubjeka/yii2-tutorial.svg?branch=step-0.4)](https://travis-ci.org/githubjeka/yii2-tutorial)
1313
| 7. Знакомство с тестированием.|
1414
| 8. Доступ к реляционным данным.|
1515
| 9. Отображение реляционных данных.| [![Build Status](https://travis-ci.org/githubjeka/yii2-tutorial.svg?branch=step-1.2)](https://travis-ci.org/githubjeka/yii2-tutorial)

scripts/steps/step-000.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ git checkout -f step-0
1010
<a href="/yii2-app-advanced/frontend/web/" target="_blank">ссылке</a>.
1111

1212
<p class="alert alert-info">
13-
Пожалуйста, ознакомьтесь с <a href="https://github.com/yiisoft/yii2/blob/master/docs/guide-ru/tutorial-advanced-app.md" target="_blank">
13+
Пожалуйста, ознакомьтесь с <a href="https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/README.md" target="_blank">
1414
официальным руководством</a>, для того чтобы иметь представление, как устроен "Шаблон приложения advanced".
1515
</p>
1616

scripts/steps/step-001.3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ foreach (Star::find()->all() as $star){
9797
$stars[$star->id] = $star->name;
9898
}
9999

100-
echo $form->field($model, 'planet')->dropDownList(
100+
echo $form->field($model, 'star_id')->dropDownList(
101101
$stars,
102102
['prompt' => 'Выберите звезду'] // текст, который отображается в качестве первого варианта
103103
);
@@ -112,7 +112,7 @@ use yii\helpers\ArrayHelper;
112112
use common\models\Star;
113113

114114
$stars = ArrayHelper::map(Star::find()->all(), 'id', 'name');
115-
echo $form->field($model, 'planet')->dropDownList($stars, ['prompt' => 'Выберите звезду']);
115+
echo $form->field($model, 'star_id')->dropDownList($stars, ['prompt' => 'Выберите звезду']);
116116
```
117117

118118
Конечно, вы можете обойтись без переменной `$stars`, записав этот код одну строку. Ну и после всего, для этой формы

0 commit comments

Comments
 (0)