Hello everybody,
I have a problem with my function.
I insert a function in my Vardefs.php of the module
function genererChaineAleatoire($longueur = 12)
{
$caracteres = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$longueurMax = strlen($caracteres);
$chaineAleatoire = '';
for ($i = 0; $i < $longueur; $i++)
{
$chaineAleatoire .= $caracteres[rand(0, $longueurMax - 1)];
}
return $chaineAleatoire;
}
The function work like I want but when I execute my page, there are a white page⦠but normaly the page have to refresh and finish in DetailView.php
Someone can to help me please ?
Thank you
Cordialy,