Skip to content

Commit

Permalink
Update structure-controllers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kanet4u committed Jun 7, 2015
1 parent 30a5606 commit ae39edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/guide-uz/structure-controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Kontrolyor [MVC](https://ru.wikipedia.org/wiki/Model-View-Controller) arxitektur

## Amallar <span id="actions"></span>

Kontrolyorlar *amallar (action)*dan tashkil topadi, *amallar* asosiy bloklar hisoblanib, foydalanuvchilar bunga murojaat qilishi mumkin va ma'lum amalni bajarib natijani foydalanuvchiga qaytaradi. Bitta kontrolyorda bitta va undan ortiq amal bo'lishi mumkin.
Kontrolyorlar *amallar (action)*dan tashkil topadi, *amallar* asosiy bloklar hisoblanib, foydalanuvchilar amallarga murojaat qilishi mumkin va ma'lum buyruqlar bajarilib natija hosil qilinadi hamda natija foydalanuvchiga qaytariladi. Bitta kontrolyorda bitta va undan ortiq amal bo'lishi mumkin.

Quyidagi misolda ikkita amaldan (`view` va `create`) tashkil topgan `post` kontrolyori keltirilgan:

Expand Down Expand Up @@ -46,6 +46,7 @@ class PostController extends Controller
}
```


В действии `view` (определенном методом `actionView()`), код сначала загружает [модель](structure-models.md)
согласно запрошенному ID модели; Если модель успешно загружена, то код отобразит ее с помощью [представления](structure-views.md)
под названием `view`. В противном случае будет брошено исключение.
Expand Down

0 comments on commit ae39edd

Please sign in to comment.