You might not need all of your components available on every controller action.
What we're doing here is from the perspective of a controller action, but could be done elsewhere.
Ce que nous faisons ici est en perspective d'une action du controller mais pourrait être fait ailleurs.
Here we'll work in the context of a controller action.
This event is triggered before running every controller action.
Create a form in the view script file associated with the controller action.
Called after every controller action, and after rendering is complete.
It specifies a controller action which should handle all user requests.
Supports using a dedicated controller action to display errors.
Prise en charge de l'utilisation d'une action de contrôleur dédiée à l'affichage des erreurs.
In the controller action you would put the following
The following example shows how to send a file in a controller action
L'exemple qui suit montre comment envoyer un fichier dans une action de contrôleur.
The convention is to have the template use the lower case and underscored version of the controller action name.
La convention est d'utiliser le nom de l'action du controller en minuscule et avec un underscore en séparateur.
The route is then used to instantiate the corresponding controller action to handle the request.
La route est ensuite utilisée pour instancier l'action de contrôleur correspondante pour la prise en charge de la requête.
To pass extra data to the receiving controller action add to the $options array.
Pour passer des données supplémentaires à l'action du controller reçue, ajoutez les au tableau $options.