Skip to content
Extraits de code Groupes Projets
Valider f833bd26 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fixing documentation formatting of Controller::renderTemplate().

parent c484f072
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -252,13 +252,13 @@ abstract class Controller ...@@ -252,13 +252,13 @@ abstract class Controller
* Assigns the given variables to the template and renders it. * Assigns the given variables to the template and renders it.
* *
* Example: * Example:
* ``` *
public function myControllerAction () { * public function myControllerAction () {
return $this->renderTemplate('index', array( * return $this->renderTemplate('index', array(
'answerToLife' => '42' * 'answerToLife' => '42'
)); * ));
} * }
``` *
* This will render the 'index.twig' file within the plugin templates folder and assign the view variable * This will render the 'index.twig' file within the plugin templates folder and assign the view variable
* `answerToLife` to `42`. * `answerToLife` to `42`.
* *
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter