Skip to content

Instantly share code, notes, and snippets.

@tech-nova
Created April 9, 2016 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tech-nova/a250b32820bb3af388616acacf788b09 to your computer and use it in GitHub Desktop.
Save tech-nova/a250b32820bb3af388616acacf788b09 to your computer and use it in GitHub Desktop.
Créer une balise dynamique perso
<?php
function balise_GESTION_TRUC ($p) {
return calculer_balise_dynamique($p, 'GESTION_TRUC', array());
}
function balise_GESTION_TRUC_dyn() {
// Faire des choses en PHP
// Retourner directement un résultat à afficher
return $une_string;
// Ou bien un squelette (qui sera mis en cache)
return array('inclure/mon_squelette', 3600, array('contexte' => 'truc'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment