De exemplu, daca o clasa controller contine o metoda cu numele actionEdit, atunci ID-ul este edit.
For example, if a controller class contains a method named actionEdit, the ID of the corresponding action would be edit.
Se primeste, prin ruta, ID-ul controller-ului, iar aplicatia va folosi urmatoarele reguli pentru a determina ce clasa controller este si unde este localizat fisierul fizic al clasei.
Given the ID of the controller, the application will use the following rules to determine what the controller class is and where the class file is located.
Autres résultats
Un filtru poate fi definit ca metoda in clasa controller-ului.
Apoi, la inceputul fisierului cu clasa controller-ului, inseram urmatoarele linii
Second, at the beginning of a controller class file, insert the following lines
O modalitate mai avansata de a defini o clasa action este prin a cere controller-ului sa instantieze clasa action atunci cand este ceruta.
A more advanced way is to define an action class and ask the controller to instantiate it when requested.
Un controller distribuit ca extensie ar trebui sa fie derivat din clasa CExtController, in loc de CController.
Controller A controller distributed as an extension should extend from CExtController, instead of CController.
O data ce toate de mai sus sunt pregatite, putem folosi clasa Lucene intr-un action al unui controller in felul urmator
Once the above set up is ready, we can use the Lucene class in a controller action, like the following
In acest exemplu, controller-ul este post si se refera la clasa PostController; action-ul este show, iar semnificatia numelui este determinata de controller-ul in cauza.
For this example, the controller is post which refers to the PostController class; and the action is show whose actual meaning is determined by the controller.
In clasa widget-ului, pentru a procesa un view al widget-ului, folosim $this->render('ViewName'), la fel ca in cazul unui controller.
In the widget class, in order to render a widget view, use $this->render('ViewName'), which is similar to what we do in a controller.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.
Aucun résultat pour cette recherche.
Synonymes et analogies de "clasa controller" en roumain