![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 224 Pomógł: 18 Dołączył: 4.02.2003 Skąd: Częstochowa Ostrzeżenie: (0%) ![]() ![]() |
Witam, chciałem na potrzeby pracy mgr. dobrze opisać diagram znajdujący się w dokumentacji:
http://framework.zend.com/manual/en/zend.c...ler.basics.html Ostatni akapit: Cytat The workflow of Zend_Controller is relatively simple. A request is received by Zend_Controller_Front, which in turn calls Zend_Controller_Router_Rewrite to determine which controller (and action in that controller) to dispatch. Zend_Controller_Router_Rewrite decomposes the URI in order to set the controller and action names in the request. Zend_Controller_Front then enters a dispatch loop. It calls Zend_Controller_Dispatcher_Standard, passing it the request, to dispatch to the controller and action specified in the request (or use defaults). After the controller has finished, control returns to Zend_Controller_Front. If the controller has indicated that another controller should be dispatched by resetting the dispatched status of the request, the loop continues and another dispatch is performed. Otherwise, the process ends. Moje tłumaczenie: Cytat Działanie Zend_Controller jest stosunkowo proste.(dop. czyżby? ![]() Po skończeniu załadunku, kontrola wraca do Zend_Controller_Front. Jeśli kontroler wykazał potrzebę załadowania innego kontrolera (innej klasy) przez resetowanie procesu załadowywania, pętla kontynuuje się i kolejne ładowania klas (dispatcher) odbywają się dalej. W przeciwnym razie proces się kończy. Czy dobrze to zrozumiałem i czy nie popełniłem czasem błędu w interpretacji/tłumaczeniu? Będę bardzo wdzięczy za opinię, pozdrawiam. Ten post edytował rafalp 2.05.2011, 20:13:37 -------------------- |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 6 072 Pomógł: 861 Dołączył: 10.12.2003 Skąd: Dąbrowa Górnicza ![]() |
Oj chyba zbyt dosłownie tłumaczyłeś... Ja bym dokonał takich zmian:
1. Zapytanie -> Żądanie. 2. "to the controller and action specified in the request" -> "do kontrolera oraz akcji określonych w żądaniu". 3. "Po skończeniu załadunku" (pojechałeś ![]() 4. "Jeśli kontroler wykazał potrzebę załadowania innego kontrolera (innej klasy) przez resetowanie procesu załadowywania, pętla kontynuuje się i kolejne ładowania klas (dispatcher) odbywają się dalej." hehe kolejny kwiatek - przyjemność jego modyfikacji pozostawiam Tobie. PS: Z frameworkami |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 224 Pomógł: 18 Dołączył: 4.02.2003 Skąd: Częstochowa Ostrzeżenie: (0%) ![]() ![]() |
Dzięki wielkie,
załadunek haha ach te skojarzenia;p No a z tym: Cytat If the controller has indicated that another controller should be dispatched by resetting the dispatched status of the request, the loop continues and another dispatch is performed. Trochę mam z tym problem, jak by się jeszcze ktoś pokusił o interpretację (bo ja bez brzydkich skojarzeń nie umiem;) -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 31.07.2025 - 09:54 |