Forum CMS Made Simple FR
[Résolu] La géolocalisation a échouée... CGGoogleMap - Version imprimable

+- Forum CMS Made Simple FR (https://forum.cmsmadesimple.fr)
+-- Forum : Général (https://forum.cmsmadesimple.fr/forum-3.html)
+--- Forum : Modules, Tags (https://forum.cmsmadesimple.fr/forum-14.html)
+--- Sujet : [Résolu] La géolocalisation a échouée... CGGoogleMap (/thread-3130.html)

Pages : 1 2


[Résolu] La géolocalisation a échouée... CGGoogleMap - snatch1974 - 04/03/2014

Citation :According to the documentation ksort() always returns a boolean and the array is modified by reference. You could assign the result of ksort() to a unused variable and use the array for your output like this.

{$tmp = ksort($var)}
{$var}


J'ai testé {$var|ksort} et j'ai une erreur.
Il faut créer la référence de tri avant le foreach pour que ça fonctionne.
En fait y'a pas de fonction à créer, juste à stocker dans une variable ($temp) la condition de tri avant d'effectuer la boucle.


[Résolu] La géolocalisation a échouée... CGGoogleMap - Jean le Chauve - 04/03/2014

Super, merci pour l'explication et bonne continuation pour ton super site Smile